IOS Get device System Information

Source: Internet
Author: User

IOS Get device System Information

    Uidevice*device_=[[Uidevice Alloc] Init];

      nslog (@" name of the device owner-- %@" , device_.name);

      nslog (@" device category--- %@" , Device_.model);

      nslog (@" localized version of the device- %@" , Device_.localizedmodel);

      nslog (@" device operating system--- %@" , device_.systemname);

      nslog (@" current system version--- %@" , device_.systemversion);

      nslog (@" Device identification code--- %@" , Device_.identifierforvendor.uuidstring );

     

//Get the device screen height

      float  screenheight=[uiscreen  mainscreen ].bounds . size . height ;



Printing results are as follows

2013-03-08 17:31:13.944 waimai[14982:907] the name of the device owner-- "Zhangqingfeng" the iPhone

2013-03-08 17:31:13.951 waimai[14982:907] type of equipment--- IPhone

2013-03-08 17:31:13.953 waimai[14982:907] localized version of the device- IPhone

2013-03-08 17:31:13.957 waimai[14982:907] the system that the device is running--- IPhone OS

2013-03-08 17:31:13.961 waimai[14982:907] the current version of the system--- 6.0.1

2013-03-08 17:31:13.969 waimai[14982:907] Device Identification Code ---- 7305afe8-66c0-4c6b-8173-1aa61e9f837d

2013-03-08 17:31:14.178 waimai[14982:1703]

IOS Get device System 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.