Last active
February 7, 2018 05:33
-
-
Save brownsoo/c8c20acf20dd8eb1aa4df7053f2d820b to your computer and use it in GitHub Desktop.
Checking iOS version in above 8.0
This file contains 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
NSOperatingSystemVersion ios8_0_1 = (NSOperatingSystemVersion){8, 0, 1}; | |
if ([[NSProcessInfo processInfo] isOperatingSystemAtLeastVersion:ios8_0_1]) { | |
// iOS 8.0.1 and above logic | |
} else { | |
// iOS 8.0.0 and below logic | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment