Device iOS Version
suggest changeThis reads the current system version. systemVersion is a string such as "17.0", not a numeric comparison value.
Objective-C
NSString *version = [[UIDevice currentDevice] systemVersion];
Swift
let version = UIDevice.currentDevice().systemVersion
Swift 3
let version = UIDevice.current.systemVersion
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents