在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:leverdeterre/CalendarIOS7开源软件地址:https://github.com/leverdeterre/CalendarIOS7开源编程语言:Objective-C 98.6%开源软件介绍:My other works[http://leverdeterre.github.io] (http://leverdeterre.github.io) Calendar iOSCalendar iOS is a very simple calendar/date picker component for your iOS apps based on UICollectionView and 2 layouts. Day cells stylesChangesv 0.0.5
v 0.0.3
v 0.0.2
v 0.0.1
Supported iOS & SDK Versions
Installationpod '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 : CALgendaEventIf 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
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论