获取IOS设备的代码

来源:互联网 发布:非线性最优化求参数 编辑:程序博客网 时间:2024/05/20 13:40
- (void)viewDidLoad {
    [super viewDidLoad];
    
    NSString *systemName = [[UIDevice currentDevice] systemName];
    NSString *systemVersion =  [[UIDevice currentDevice] systemVersion];//os version
    NSString *model =  [[UIDevice currentDevice] model];
    NSString * name = [[UIDevice currentDevice] name];
    NSLog(@"%@",systemVersion);
    NSLog(@"%@",systemName);
    NSLog(@"%@",model);
    NSLog(@"%@",name);
    

    
}
0 0