Skip to content

Instantly share code, notes, and snippets.

@brownsoo
Last active February 7, 2018 05:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save brownsoo/c8c20acf20dd8eb1aa4df7053f2d820b to your computer and use it in GitHub Desktop.
Save brownsoo/c8c20acf20dd8eb1aa4df7053f2d820b to your computer and use it in GitHub Desktop.
Checking iOS version in above 8.0
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