Fix willDisplay

This commit is contained in:
WenchaoD 2017-03-01 21:53:43 +08:00
parent 3a76fa968a
commit 7ac5cb9430
1 changed files with 3 additions and 0 deletions

View File

@ -585,6 +585,9 @@ typedef NS_ENUM(NSUInteger, FSCalendarOrientation) {
- (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];