iOS如何获取设备相关信息

 时间:2026-02-15 11:56:21

1、获取iPhone名称:

[UIDevice currentDevice].name;

iOS如何获取设备相关信息

2、获取app版本号:

[[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]

iOS如何获取设备相关信息

3、获取电池电量:

[UIDevice currentDevice].batteryLevel;

iOS如何获取设备相关信息

4、获取当前系统名称:

[UIDevice currentDevice].systemName;

iOS如何获取设备相关信息

5、获取当前系统版本号:

[UIDevice currentDevice].systemVersion;

iOS如何获取设备相关信息

6、获取UUID:

[[UIDevice currentDevice] identifierForVendor].UUIDString;

iOS如何获取设备相关信息

7、获取总内存大小:

[NSProcessInfo processInfo].physicalMemory;

iOS如何获取设备相关信息

8、获取当前语言:

NSArray *languageArray = [NSLocale preferredLanguages];

[languageArray objectAtIndex:0]

iOS如何获取设备相关信息

  • 教你用测振仪VIB05分析振动测量
  • 美团为何用不了支付宝
  • 怎么打开苹果数据迁移?
  • 疤痕怎么去除
  • 苹果iPhone6s如何注册Apple ID
  • 热门搜索
    宝宝流鼻涕怎么办 朝阳轮胎怎么样 怎么用ps做海报 铁锅生锈怎么办 qq怎么赠送q币 光大信用卡怎么样 左眼皮一直跳是怎么回事 蛤蜊干怎么做好吃 小孩反复发烧怎么办 舌头发麻是怎么回事