Skip to content

Commit

Permalink
Refactored how we check for iOS 7
Browse files Browse the repository at this point in the history
  • Loading branch information
kcharwood committed Sep 17, 2013
1 parent ce6c68e commit 4a31e9e
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,5 @@


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

0 comments on commit 4a31e9e

Please sign in to comment.