Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
leverdeterre committed Oct 1, 2014
2 parents 09e566e + 3bb13c4 commit fa10ff9
Showing 1 changed file with 24 additions and 7 deletions.
31 changes: 24 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,20 @@ Day cells styles

## Changes
---------------------------------------------------

v 0.0.4
* Support iphone 5, 6, 6Plus layout
* Fixed Xcode 64bits warnings

v 0.0.3
fix section number (number of months between two dates)
update app localization
* Fixed section number (number of months between two dates)
* update app localization

v 0.0.2
Implementation of horizontal scrollDirection
* Implementation of horizontal scrollDirection

v 0.0.1
Draft version
* Draft version

Supported iOS & SDK Versions
---------------------------------------------------
Expand All @@ -44,12 +50,24 @@ Creating a CalendarViewController
[agendaVc setFromDate:fromDate];
[agendaVc setToDate:toDate];
#Select cell style
agendaVc.dayStyle = CALDayCollectionViewCellDayUIStyleIOS7;
agendaVc.dayStyle = CALDayCollectionViewCellDayUIStyleIOS7;
```
Delegation : CALAgendaCollectionViewDelegate
Or subclassing CALAgendaViewController (don't forget your CollectionView outlet CALAgendaCollectionView)
---------------------------------------------------
```objc
CALAgendaViewController *agendaVc = [CALAgendaViewController new];
agendaVc.calendarScrollDirection = UICollectionViewScrollDirectionHorizontal;
agendaVc.agendaDelegate = self;
[agendaVc setFromDate:fromDate];
[agendaVc setToDate:toDate];
#Select cell style
agendaVc.dayStyle = CALDayCollectionViewCellDayUIStyleIOS7;
```

Delegation : CALAgendaCollectionViewDelegate
---------------------------------------------------

```objc
- (void)agendaCollectionView:(CALAgendaCollectionView *)agendaCollectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath selectedDate:(NSDate *)selectedDate;
Expand All @@ -60,7 +78,6 @@ Delegation : CALAgendaCollectionViewDelegate
- (BOOL)agendaCollectionView:(CALAgendaCollectionView *)agendaCollectionView canSelectDate:(NSDate *)selectedDate;
```


```objc
- (void)agendaCollectionView:(CALAgendaCollectionView *)agendaCollectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath startDate:(NSDate *)startDate endDate:(NSDate*)endDate;
```
Expand Down

0 comments on commit fa10ff9

Please sign in to comment.