获取设备的一些信息:
UIDevice *device = [UIDevice currentDevice];
@property(nonatomic,readonly,strong) NSString *name; // e.g. "My iPhone"
@property(nonatomic,readonly,strong) NSString *model; // e.g. @"iPhone", @"iPod touch"
@property(nonatomic,readonly,strong) NSString *localizedModel; // 获取本地化版本
@property(nonatomic,readonly,strong) NSString *systemName; //e.g. @"iOS",当前运行的系统
@property(nonatomic,readonly,strong) NSString *systemVersion; //e.g. @"4.0",当前系统的版本
获取设备的一些信息:
NSDictionary *infoDic = [[NSBundle mainBundle] infoDictionary];
//APP 名字
NSString *appName = [infoDic objectForKey:@"CFBundleDisplayName"];
//APP Build版本
NSString *appBuild = [infoDic objectForKey:@"CFBundleVersion"];
//APP 版本
NSString *appVersion = [infoDic objectForKey:@"CFBundleShortVersionString"];