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