Possible Duplicate:
Check iPhone iOS Version
I want to check iOS Version in iOS.
Because i have some of codes only for iOS 6.
So how can i?
Possible Duplicate:
Check iPhone iOS Version
I want to check iOS Version in iOS.
Because i have some of codes only for iOS 6.
So how can i?
Check this GitHub Gist https://gist.github.com/998472
You can add the code or include it in your ...-Prefix.pch file so you can use it wherever you need it.
EDIT
I'm leaving an example of how you can use the code from Gist so people can check if it's useful for their case. This can also be found over the Gist.
Try this:
Update:
Previous code:
To specifically check for a subversion of IOS use
You can get the iOS version as a string using: