Get phone parameters

Source: Internet
Author: User

1     //App Name2Nsdictionary *infodictionary =[[NSBundle Mainbundle] infodictionary];3NSString *appname = [Infodictionary objectforkey:@"Cfbundledisplayname"];4NSLog (@"Application Name:%@", appName);5     6     //Version number7NSString *shortversion = [Infodictionary objectforkey:@"cfbundleshortversionstring"];8NSLog (@"version number:%@", shortversion);9     Ten     //version number (int type) OneNSString *version = [Infodictionary objectforkey:@"cfbundleversion"]; ANSLog (@"version number (int type):%@", version); -      -     //Phone identifiers thensuuid* Identifierforvendor =[[Uidevice Currentdevice] Identifierforvendor]; -NSLog (@"cell phone identifier:%@", Identifierforvendor); -      -     //Mobile Phone +Cfuuidref Uuidref =cfuuidcreate (kcfallocatordefault); -NSString *uuid = (NSString *) Cfbridgingrelease (cfuuidcreatestring (Kcfallocatordefault,uuidref)); +NSLog (@"cell phone uuid:%@", uuid); A      at     //system -NSString *systemname =[[Uidevice Currentdevice] systemName]; -NSLog (@"System:%@", systemName); -      -     //Mobile phone system version -nsstring* systemversion =[[Uidevice Currentdevice] systemversion]; inNSLog (@"Mobile Phone system version:%@", systemversion); -      to     //User's phone name +nsstring* Phonename =[[Uidevice Currentdevice] name]; -NSLog (@"User's mobile name:%@", phonename); the      *     //Phone Model $NSString *phonemodel =[[Uidevice Currentdevice] model];Panax NotoginsengNSLog (@"phone Model:%@", Phonemodel); -      the     //Local Model +NSString *localizedmodel =[[Uidevice Currentdevice] localizedmodel]; ANSLog (@"local model:%@", Localizedmodel);

respecting the author's labor achievements, reprint please specify: "Kingdev"

Get phone parameters

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.