How to check iOS version?
Asked 07 September, 2021
Viewed 2.9K times
  • 55
Votes

I want to check if the iOS version of the device is greater than 3.1.3 I tried things like:

[[UIDevice currentDevice].systemVersion floatValue]

but it does not work, I just want a:

if (version > 3.1.3) { }

How can I achieve this?

30 Answer