1. Identify the current system version, due to the iOS7 statusbar is dangling, so you need to do the next fit this avoids white bars appearing underneath the screen, different layouts for different versions of the content
<pre name= "code" class= "OBJC" > int stateheight = 0; if ([Uidevice currentdevice].systemversion.intvalue>=7) { stateheight =; }
2.Uidevice Point Open this class there are other system information can be obtained similar to the above method but not commonly used, through a single example to see the properties
@property (nonatomic,readonly,retain) nsstring *name; e.g. "My iPhone" @property (nonatomic,readonly,retain) nsstring *model; e.g @ "iPhone" @ "IPod Touch" @property (nonatomic,readonly,retain) nsstring *localizedmodel; Localized version of Model@property (Nonatomic,readonly,retain) nsstring *systemname; e.g. @ "IOS" @property (nonatomic,readonly,retain) nsstring *systemversion; e.g. @ "4.0" @property (nonatomic,readonly) uideviceorientation orientation; Return current device orientation. This would return Uideviceorientationunknown unless device orientation notifications is being generated.
iOS get current system version/uuid ID/name/model