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 has not started a dull pain, but still for the IPhone6 and IPhone6 plus the design of the transition and the large-screen era of joy.

Today, mainly to mark the following Xib way to fit the IPhone6 and iPhone6 plus screen.

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

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

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

One, code adaptation (more cumbersome not easy to upgrade)

The code adaptation method is not conducive to future expansion, by judging the current screen size to dynamically change the empty control frame.

Second, xib adaptation

Xib do not tick the use AutoLayout, then the frame of each control is implemented by the relative layout, so the end .... Everything is not in the words ...

Good night ...

iOS on IPhone6 and IPhone6 plus screen adaptation issues

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.