iOS Checking iOS version Device iOS Version


Example

This will give current system version.

Objective-C

NSString *version = [[UIDevice currentDevice] systemVersion]

Swift

let version = UIDevice.currentDevice().systemVersion

Swift 3

let version = UIDevice.current.systemVersion