Merge pull request #515 from kallahir/master

Removing if-clause that makes impossible to change today date.
This commit is contained in:
Wenchao Ding 2016-12-17 09:26:57 +08:00 committed by GitHub
commit 9892f07689
1 changed files with 2 additions and 4 deletions

View File

@ -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];