IOS phone serial number phone name version and so on Get

Source: Internet
Author: User

nsstring* identifiernumber = [[Uidevice Currentdevice].identifierforvendor uuidstring];
NSLog (@ "Mobile serial number:%@", identifiernumber);
Phone aliases: User-defined names
nsstring* userphonename = [[Uidevice currentdevice] name];
NSLog (@ "phone alias:%@", userphonename);
Device Name
nsstring* devicename = [[Uidevice currentdevice] systemName];
NSLog (@ "Device name:%@", devicename);
Mobile phone system version
nsstring* phoneversion = [[Uidevice currentdevice] systemversion];
NSLog (@ "mobile phone system version:%@", phoneversion);
Phone model
nsstring* Phonemodel = [[Uidevice currentdevice] model];
NSLog (@ "mobile phone Model:%@", Phonemodel);
Local model (internationalized region name)
nsstring* Localphonemodel = [[Uidevice currentdevice] Localizedmodel];
NSLog (@ "internationalized Zone Name:%@", Localphonemodel);

Nsdictionary *infodictionary = [[NSBundle mainbundle] infodictionary];
Current app Name
NSString *appcurname = [infodictionary objectforkey:@ "Cfbundledisplayname"];
NSLog (@ "Current application name:%@", appcurname);
Current application version such as: 1.0.1
NSString *appcurversion = [infodictionary objectforkey:@ "cfbundleshortversionstring"];
NSLog (@ "Current application software version:%@", appcurversion);
Current app version number int type
NSString *appcurversionnum = [infodictionary objectforkey:@ "cfbundleversion"];
NSLog (@ "Current application version number:%@", appcurversionnum);

IOS phone serial number phone name version and so on Get

Related Article

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.