Created
September 30, 2014 14:36
-
-
Save vjyanand/984b9bf2041a604322fd to your computer and use it in GitHub Desktop.
version check
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_1_0 = (NSOperatingSystemVersion){8, 1, 0}; | |
if ([[NSProcessInfo processInfo] isOperatingSystemAtLeastVersion:ios8_1_0]) { | |
// Read and write workout information to health kit. | |
} else { | |
// Write workout information to health kit | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment