Add a nullability identifier.

This commit is contained in:
WenchaoD 2017-06-06 22:53:00 +08:00
parent f002ba9615
commit 738ad7b4bd
2 changed files with 2 additions and 2 deletions

View File

@ -506,7 +506,7 @@ IB_DESIGNABLE
@param position The month position for the cell
@return An object representing a cell of the calendar, or nil if the cell is not visible or date is out of range.
*/
- (__kindof FSCalendarCell *)cellForDate:(NSDate *)date atMonthPosition:(FSCalendarMonthPosition)position;
- (nullable FSCalendarCell *)cellForDate:(NSDate *)date atMonthPosition:(FSCalendarMonthPosition)position;
/**

View File

@ -825,7 +825,7 @@ typedef NS_ENUM(NSUInteger, FSCalendarOrientation) {
return cell;
}
- (FSCalendarCell *)cellForDate:(NSDate *)date atMonthPosition:(FSCalendarMonthPosition)position
- (nullable FSCalendarCell *)cellForDate:(NSDate *)date atMonthPosition:(FSCalendarMonthPosition)position
{
NSIndexPath *indexPath = [self.calculator indexPathForDate:date atMonthPosition:position];
return (FSCalendarCell *)[self.collectionView cellForItemAtIndexPath:indexPath];