Add a nullability identifier.
This commit is contained in:
parent
f002ba9615
commit
738ad7b4bd
|
|
@ -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;
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Reference in New Issue