Merge pull request #515 from kallahir/master
Removing if-clause that makes impossible to change today date.
This commit is contained in:
commit
9892f07689
|
|
@ -784,10 +784,8 @@ typedef NS_ENUM(NSUInteger, FSCalendarOrientation) {
|
|||
_today = nil;
|
||||
} else {
|
||||
FSCalendarAssertDateInBounds(today,self.gregorian,self.minimumDate,self.maximumDate);
|
||||
if (![self.gregorian isDateInToday:today]) {
|
||||
_today = [self.gregorian dateBySettingHour:0 minute:0 second:0 ofDate:today options:0];
|
||||
[self setNeedsLayout];
|
||||
}
|
||||
_today = [self.gregorian dateBySettingHour:0 minute:0 second:0 ofDate:today options:0];
|
||||
[self setNeedsLayout];
|
||||
}
|
||||
if (self.hasValidateVisibleLayout) {
|
||||
[_collectionView.visibleCells makeObjectsPerformSelector:@selector(setDateIsToday:) withObject:@NO];
|
||||
|
|
|
|||
Loading…
Reference in New Issue