TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Jérôme Morissard.
Calendar iOS is a very simple calendar/date picker component for your iOS apps based on UICollectionView and 2 layouts.
v 0.0.5
v 0.0.3
v 0.0.2
v 0.0.1
pod 'CalendarIOS7'
CALAgendaViewController *agendaVc = [CALAgendaViewController new];
agendaVc.calendarScrollDirection = UICollectionViewScrollDirectionHorizontal;
agendaVc.agendaDelegate = self;
[agendaVc setFromDate:fromDate];
[agendaVc setToDate:toDate];
#Select cell style
agendaVc.dayStyle = CALDayCollectionViewCellDayUIStyleIOS7;
CALAgendaViewController *agendaVc = [CALAgendaViewController new];
agendaVc.calendarScrollDirection = UICollectionViewScrollDirectionHorizontal;
agendaVc.agendaDelegate = self;
[agendaVc setFromDate:fromDate];
[agendaVc setToDate:toDate];
#Select cell style
agendaVc.dayStyle = CALDayCollectionViewCellDayUIStyleIOS7;
- (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;
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