iOS on IPhone6 and IPhone6 plus screen adaptation issues

Source: Internet
Author: User

IPhone6 and IPhone6 Plus have been on the market for some time. Although the mainland did not start a dull pain, but also for the IPhone6 and IPhone6 plus design of the transition and the big screen times are delighted.

Today the main mark below is the xib way to fit the IPhone6 and IPhone6 plus screens.

1.iphone5 resolution 320X568. Pixel 640x1136,@2x

2.iphone6 resolution 375x667, Pixel 750x1334. @2x

3.iphone6 Plus resolution 414x736, Pixel 1242x2208,@3x, (note, after rendering at this resolution.) Image ratio reduced pixel resolution to 1080p (1080x1920)

One, code adaptation (more cumbersome not easy upgrade)

The way the code is adapted is not conducive to future extensions. Dynamically change the frame of an empty control by inferring the size of the current screen.

Second, xib adaptation

Xib do not tick the use AutoLayout, then each control of the frame through the relative layout to achieve, well the end ...

。 Everything is in silence.

。。

Good night.

。。

iOS on IPhone6 and IPhone6 plus screen adaptation issues

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.