您的位置:首页 > 移动开发 > IOS开发

ios 获取ios系统信息

2016-03-04 14:24 387 查看
- (void)viewDidLoad {
    [super
viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.

    NSString * systemVersion =[[UIDevice
currentDevice]systemVersion];
    NSLog(@"系统版本---%@",systemVersion);
    
    NSString * systemModel =[[UIDevice
currentDevice]model];
    NSLog(@"iphone or ipad ----%@",systemModel);
    
    NSDictionary * dic =[[NSBundle
mainBundle]infoDictionary];
    NSLog(@"获取info-plist----%@",dic);
    
    NSString * appName =[dic
objectForKey:@"CFBundleIdentifier"];
    NSLog(@"获取Bundle Identifier---%@",appName);
    
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: