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

获取IOS设备的代码

2015-10-13 10:28 344 查看
- (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);

    

    

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ios设备