设备 iOS 版本
这将给出当前的系统版本。
Objective-C
NSString *version = [[UIDevice currentDevice] systemVersion]
迅速
let version = UIDevice.currentDevice().systemVersion
Swift 3
let version = UIDevice.current.systemVersion
这将给出当前的系统版本。
NSString *version = [[UIDevice currentDevice] systemVersion]
let version = UIDevice.currentDevice().systemVersion
let version = UIDevice.current.systemVersion