裝置 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