How to check iOS Version is iOS 6? [duplicate]
问题 This question already has answers here : Closed 7 years ago . 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? 回答1: 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