better iOS 7 determination
Showing
1 changed file
with
2 additions
and
2 deletions
@@ -24,5 +24,5 @@ | @@ -24,5 +24,5 @@ | ||
24 | #define NS_BLOCK_ASSERTIONS 1 | 24 | #define NS_BLOCK_ASSERTIONS 1 |
25 | #endif | 25 | #endif |
26 | 26 | ||
27 | -#define RMPostVersion7 ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0) | ||
28 | -#define RMPreVersion7 ([[[UIDevice currentDevice] systemVersion] floatValue] < 7.0) | 27 | +#define RMPostVersion7 (floor(NSFoundationVersionNumber) > NSFoundationVersionNumber_iOS_6_1) |
28 | +#define RMPreVersion7 (floor(NSFoundationVersionNumber) <= NSFoundationVersionNumber_iOS_6_1) |
-
Please register or login to post a comment