痞子英雄程诺,鹰刀传说txt下载,下限少女
一、获取uidevice设备信息
// 获取设备名称 nsstring *name = [[uidevice currentdevice] name]; // 获取设备系统名称 nsstring *systemname = [[uidevice currentdevice] systemname]; // 获取系统版本 nsstring *systemversion = [[uidevice currentdevice] systemversion]; // 获取设备模型 nsstring *model = [[uidevice currentdevice] model]; // 获取设备本地模型 nsstring *localizedmodel = [[uidevice currentdevice] localizedmodel];
二、获取bundle的相关信息
nsdictionary *infodict = [[nsbundle mainbundle] infodictionary]; // app名称 nsstring *appname = infodict[@"cfbundlename"]; // app版本 nsstring *appversion = infodict[@"cfbundleshortversionstring"]; // app build版本 nsstring *appbuild = infodict[@"cfbundleversion"];
nslocal获取本地化数据:
// 获取用户的语言偏好设置列表 nslog(@"%@", [nslocale preferredlanguages]); // 获取系统所有本地化标识符数组列表 nslog(@"%@", [nslocale availablelocaleidentifiers]); // 获取所有已知合法的国家代码数组列表 nslog(@"%@", [nslocale isocountrycodes]); // 获取所有已知合法的iso货币代码数组列表 nslog(@"%@", [nslocale isocurrencycodes]); // 获取所有已知合法的iso语言代码数组列表 nslog(@"%@", [nslocale isolanguagecodes]); // 获取当前系统设置语言的标识符 // 方法一 nslog(@"%@", [[nslocale currentlocale] localeidentifier]); // 方法二 nslog(@"%@", [[nslocale currentlocale] objectforkey:nslocaleidentifier]);
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
网友评论