We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bb7ad80 + f4b2e2f commit fcb63ceCopy full SHA for fcb63ce
MJRefresh/Custom/Header/MJRefreshStateHeader.m
@@ -55,7 +55,7 @@ - (void)setTitle:(NSString *)title forState:(MJRefreshState)state
55
56
#pragma mark - 日历获取在9.x之后的系统使用currentCalendar会出异常。在8.0之后使用系统新API。
57
- (NSCalendar *)currentCalendar {
58
- if (NSFoundationVersionNumber >= NSFoundationVersionNumber_iOS_8_0) {
+ if ([NSCalendar instancesRespondToSelector:@selector(calendarWithIdentifier:)]) {
59
return [NSCalendar calendarWithIdentifier:NSCalendarIdentifierGregorian];
60
}
61
return [NSCalendar currentCalendar];
0 commit comments