iOS get current system version/uuid ID/name/model

Source: Internet
Author: User

1. Identify the current system version, due to the iOS7 statusbar is dangling, so you need to do the next fit this avoids white bars appearing underneath the screen, different layouts for different versions of the content
<pre name= "code" class= "OBJC" >        int stateheight = 0;        if ([Uidevice currentdevice].systemversion.intvalue>=7) {            stateheight =;        }



2.Uidevice Point Open this class there are other system information can be obtained similar to the above method but not commonly used, through a single example to see the properties
@property (nonatomic,readonly,retain) nsstring    *name;              e.g. "My iPhone" @property (nonatomic,readonly,retain) nsstring    *model;             e.g @ "iPhone" @ "IPod Touch" @property (nonatomic,readonly,retain) nsstring    *localizedmodel;    Localized version of Model@property (Nonatomic,readonly,retain) nsstring    *systemname;        e.g. @ "IOS" @property (nonatomic,readonly,retain) nsstring    *systemversion;     e.g. @ "4.0" @property (nonatomic,readonly) uideviceorientation orientation;       Return current device orientation.  This would return Uideviceorientationunknown unless device orientation notifications is being generated.


iOS get current system version/uuid ID/name/model

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.