First, access to Uidevice equipment information
Get device name NSString *name = [[uidevice Currentdevice] name]; get the device system name NSString *systemname = [[Uidevice Currentdevice] systemName]; Get System version NSString *systemversion = [[Uidevice Currentdevice] systemversion]; get the device model NSString *model = [[Uidevice Currentdevice] model]; get the device local model nsstring *localizedmodel = [[Uidevice currentdevice] localizedmodel];
Ii. access to information about bundles
Nsdictionary *infodict = [[NSBundle Mainbundle] infodictionary]; app name NSString *appname = infodict[@ "cfbundlename"]; app version NSString *appversion = infodict[@ "cfbundleshortversionstring"]; App build version nsstring *appbuild = infodict[@ "cfbundleversion"];
Nslocal Getting localized data:
//Gets the user's language preference list NSLog (@"%@", [Nslocale preferredlanguages]);//Gets the system all localized identifiers array list NSLog (@"%@", [Nslocale availablelocaleidentifiers]);//Gets a list of all known valid Country code arrays NSLog (@"%@", [Nslocale isocountrycodes]);//Gets a list of all known valid ISO currency code arrays NSLog (@"%@"// get all known valid ISO language code array list nslog ( @ "%@ , [Nslocale Isolanguagecodes]); // Gets the identifier of the current system settings language //< Span style= "color: #008000;" > method one NSLog (@ "%@" , [[Nslocale Currentlocale] localeidentifier]); //@" %@
? Object-c Getting mobile device information