The Uidevice class is a singleton, and its only instance ([Uidevice Currentdevice]) represents the device currently in use. With this example, information about the device (including system name, version number, device mode, and so on) can be obtained. You can also use this instance to monitor the characteristics of a device, such as the physical direction. NSString *strname = [[Uidevice currentdevice] name]; Name of the phone as named by user nsstring *strid = [[Uidevice currentdevice] uniqueidentifier]; A GUID like string nsstring *strsysname = [[Uidevice currentdevice] systemName]; "IPhone OS" nsstring *strsysversion = [[Uidevice currentdevice] systemversion]; "2.2.1" NSString *strmodel = [[Uidevice currentdevice] model]; "IPhone" on both devices nsstring *strlocmodel = [[Uidevice currentdevice] Localizedmodel]; "IPhone" on both devices
float Version = [[[Uidevice Currentdevice] systemversion] floatvalue];
Get iOS system version---uidevice use