Skip to content
프로젝트

소개

iOS 앱용 캘린더 컴포넌트

생산성 및 자동화

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

My other works

[http://leverdeterre.github.io] (http://leverdeterre.github.io)

Calendar iOS

Twitter License MIT CocoaPods

Calendar iOS is a very simple calendar/date picker component for your iOS apps based on UICollectionView and 2 layouts.

Day cells styles

Image

Changes


v 0.0.5

  • Support iphone 5, 6, 6Plus layout
  • Fixed Xcode 6
  • Fixed 64bits warnings

v 0.0.3

  • Fixed section number (number of months between two dates)
  • update app localization

v 0.0.2

  • Implementation of horizontal scrollDirection

v 0.0.1

  • Draft version

Supported iOS & SDK Versions

  • Earliest supported deployment target - iOS 6.0

Installation

pod 'CalendarIOS7'

Creating a CalendarViewController

    CALAgendaViewController *agendaVc = [CALAgendaViewController new];
    agendaVc.calendarScrollDirection = UICollectionViewScrollDirectionHorizontal;
    agendaVc.agendaDelegate = self;
    [agendaVc setFromDate:fromDate];
    [agendaVc setToDate:toDate];
    #Select cell style
    agendaVc.dayStyle = CALDayCollectionViewCellDayUIStyleIOS7;

Or subclassing CALAgendaViewController (don't forget your CollectionView outlet CALAgendaCollectionView)

    CALAgendaViewController *agendaVc = [CALAgendaViewController new];
    agendaVc.calendarScrollDirection = UICollectionViewScrollDirectionHorizontal;
    agendaVc.agendaDelegate = self;
    [agendaVc setFromDate:fromDate];
    [agendaVc setToDate:toDate];
    #Select cell style
    agendaVc.dayStyle = CALDayCollectionViewCellDayUIStyleIOS7;

Delegation : CALAgendaCollectionViewDelegate

- (void)agendaCollectionView:(CALAgendaCollectionView *)agendaCollectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath selectedDate:(NSDate *)selectedDate;
- (BOOL)agendaCollectionView:(CALAgendaCollectionView *)agendaCollectionView canSelectDate:(NSDate *)selectedDate;
- (void)agendaCollectionView:(CALAgendaCollectionView *)agendaCollectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath startDate:(NSDate *)startDate endDate:(NSDate*)endDate;

Other protocols : CALgendaEvent

If events are availble, cell can be customize to present this state. The calendar view controller can get a array of events. Events have just to implement this protocol.

@protocol CALgendaEvent <NSObject>

- (NSDate *)eventStartDate;
- (NSDate *)eventEndDate;
- (NSString *)eventName;

@end

TODOS

  • Improve genericity and customization of cells,
  • Hours selection is a draft version .. so i'have to finish it :)

관련 프로젝트 살펴보기

불러오는 중…