Last active
December 26, 2015 13:29
-
-
Save jsai/7158914 to your computer and use it in GitHub Desktop.
iOS 7 Runtime Macro
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define LI_IS_IOS7_RUNTIME (floor(NSFoundationVersionNumber) > NSFoundationVersionNumber_iOS_6_1) | |
| // usage | |
| if (LI_IS_IOS7_RUNTIME) { | |
| // iOS 7 code | |
| } | |
| else { | |
| // iOS 6 code | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment