Skip to content

Commit fcb63ce

Browse files
committed
Merge pull request CoderMJLee#401 from codwam/master
xcode6.4 编译错误
2 parents bb7ad80 + f4b2e2f commit fcb63ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MJRefresh/Custom/Header/MJRefreshStateHeader.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ - (void)setTitle:(NSString *)title forState:(MJRefreshState)state
5555

5656
#pragma mark - 日历获取在9.x之后的系统使用currentCalendar会出异常。在8.0之后使用系统新API。
5757
- (NSCalendar *)currentCalendar {
58-
if (NSFoundationVersionNumber >= NSFoundationVersionNumber_iOS_8_0) {
58+
if ([NSCalendar instancesRespondToSelector:@selector(calendarWithIdentifier:)]) {
5959
return [NSCalendar calendarWithIdentifier:NSCalendarIdentifierGregorian];
6060
}
6161
return [NSCalendar currentCalendar];

0 commit comments

Comments
 (0)