Ios development screen adaptation and System Version adaptation

Source: Internet
Author: User

Ios development screen adaptation and System Version adaptation

During ios software development, it is very important to adapt the system to the system and the screen mainly because of the new features of IOS7 and later and ios 8, screen Adaptation mainly uses different la s for different devices to display the best results to users.

System adaptation:


After and before IOS7

#define IOSVersion                          [[[UIDevice currentDevice] systemVersion] floatValue]#define IsiOS7Later                         !(IOSVersion < 7.0)

The system must adapt to the following points:

1. (StatusBar) the height of StatusBarHeight after ios7 StatusBar is suspended on the top of the screen, so after ios7, the control layout needs to be added with 20, but not before ios7.

2. label text adaptation needs to be adapted

3. (ios8 adaptation) UIAlertController UIAlertAction-ios8 replaces UIAlertView

4. (ios8 adaptation) added positioning judgment for ios8. The info. plist file sets two attributes for location adaptation.


Screen Adaptation (the image system automatically identifies the number of times required)

1. If the requirement is not high, proportional amplification can be used to achieve adaptation.

2. If there are high requirements, it is most accurate to adopt automatic layout for adaptation.






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.