标签:ios之获取当前系统版本
<pre name="code" class="objc"> int stateHeight = 0; if ([UIDevice currentDevice].systemVersion.intValue>=7) { stateHeight = 20; }
@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 will return UIDeviceOrientationUnknown unless device orientation notifications are being generated.
标签:ios之获取当前系统版本
原文地址:http://blog.csdn.net/mr_rog/article/details/41242261