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

iOS开发获取设备唯一标识、系统版本、应用版本等信息

2016-05-09 23:25 549 查看
UIDevice *device = [UIDevice currentDevice];

NSLog(@"苹果设备唯一标识UUID: %@", device.identifierForVendor);

NSLog(@"设备别名: %@", device.name);//用户自定义的名称

NSLog(@"系统名称: %@", device.systemName);

NSLog(@"系统版本: %@", device.systemVersion);

NSLog(@"设备型号: %@", device.model);

NSLog(@"国际化区域名称: %@", device.localizedModel);

NSDictionary *infoDict = [[NSBundle mainBundle] infoDictionary];

NSLog(@"应用名称:%@", infoDict[@"CFBundleDisplayName"]);

NSLog(@"应用版本:%@", infoDict[@"CFBundleShortVersionString"]);

NSLog(@"应用版本号码:%@", infoDict[@"CFBundleVersion"]);

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