- NSLog(@"uniqueIdentifier: %@", [[UIDevice currentDevice] uniqueIdentifier]);
- NSLog(@"name: %@", [[UIDevice currentDevice] name]);
- NSLog(@"systemName: %@", [[UIDevice currentDevice] systemName]);
- NSLog(@"systemVersion: %@", [[UIDevice currentDevice] systemVersion]);
- NSLog(@"model: %@", [[UIDevice currentDevice] model]);
- NSLog(@"localizedModel: %@", [[UIDevice currentDevice] localizedModel]);
- NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary];
- CFShow(infoDictionary);
- // app名称
- NSString *app_Name = [infoDictionary objectForKey:@"CFBundleDisplayName"];
- // app版本
- NSString *app_Version = [infoDictionary objectForKey:@"CFBundleShortVersionString"];
- // app build版本
- NSString *app_build = [infoDictionary objectForKey:@"CFBundleVersion"];
IOS-获取Model(设备型号)、Version(设备版本号)、app(程序版本号)等
最新推荐文章于 2021-05-22 03:45:28 发布
本文介绍如何使用Objective-C代码来获取iOS设备的基本信息,包括设备唯一标识符、名称、系统名称及版本等,并展示了如何从应用包中读取应用程序的名称、版本号和构建版本号。
1797

被折叠的 条评论
为什么被折叠?



