Skip to content

Commit

Permalink
Fix willDisplay
Browse files Browse the repository at this point in the history
  • Loading branch information
WenchaoD committed Mar 1, 2017
1 parent 3a76fa9 commit 7ac5cb9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions FSCalendar/FSCalendar.m
Original file line number Diff line number Diff line change
Expand Up @@ -585,6 +585,9 @@ - (void)collectionView:(UICollectionView *)collectionView didDeselectItemAtIndex

- (void)collectionView:(UICollectionView *)collectionView willDisplayCell:(UICollectionViewCell *)cell forItemAtIndexPath:(NSIndexPath *)indexPath
{
if (![cell isKindOfClass:[FSCalendarCell class]]) {
return;
}
NSDate *date = [self.calculator dateForIndexPath:indexPath];
FSCalendarMonthPosition monthPosition = [self.calculator monthPositionForIndexPath:indexPath];
[self.delegateProxy calendar:self willDisplayCell:(FSCalendarCell *)cell forDate:date atMonthPosition:monthPosition];
Expand Down

0 comments on commit 7ac5cb9

Please sign in to comment.