iOS development screen adaptation and system version adaptation

Source: Internet
Author: User

An important aspect of the iOS software development process is the adaptation of the system and the screen to fit the system is mainly IOS7 after and before and IOS8 new features, screen adaptation is mainly to different devices using different layouts to show the best results to the user.

For system adaptation:


IOS7 after and before

<span style= "Font-size:18px;background-color:rgb (255, 255, 255); > #define Iosversion                          [[[Uidevice Currentdevice] systemversion] floatvalue] #define Isios7later                         ! ( Iosversion < 7.0) </span>

The system needs to be adapted with the following points:

1. (StatusBar) statusbarheight height iOS7 after StatusBar is suspended above the screen so the control layout needs to be added 20 and not required before IOS7

2. Label text adaptive needs to be adapted

3. (iOS8 adaptation) Uialertcontroller Uialertaction-ios8 instead of Uialertview

4. (iOS8 adaptation) iOS8 new location judgment, info.plist file settings two properties for positioning needs adaptation


Screen fit (the picture system will automatically recognize the need for a few times the graph)

1. The requirements can be scaled to achieve a suitable

2. High-demand, automatic layout to achieve the most accurate adaptation






iOS development screen adaptation and system version adaptation

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.