? Object-c Getting mobile device information

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.