Skip to content

Commit 4a31e9e

Browse files
committed
Refactored how we check for iOS 7
1 parent ce6c68e commit 4a31e9e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

KitchenSink/ExampleFiles/MMDrawerControllerKitchenSink-Prefix.pch

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,5 @@
1515

1616

1717
static BOOL OSVersionIsAtLeastiOS7() {
18-
NSArray *sysVersion = [[UIDevice currentDevice].systemVersion componentsSeparatedByString:@"."];
19-
float majorVersion = [[sysVersion objectAtIndex:0] floatValue];
20-
return (majorVersion >= 7);
18+
return (floor(NSFoundationVersionNumber) > NSFoundationVersionNumber_iOS_6_1);
2119
}

0 commit comments

Comments
 (0)