Talk about IPHONE6 resolution and adaptation

Source: Internet
Author: User
Tags manual

Apple Spring Festival is just over, there are students for iPhone6 given the resolution of the appropriate method, pure dehydration technical text, hurriedly to learn!

Verified by a new Xcode6 simulator (PT, pixel is real pixel):

IPhone5 resolution 320x568, Pixel 640x1136,@2x

IPhone6 resolution 375x667, Pixel 750x1334,@2x

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

  Automatic fit

When not processed automatically equal than stretching, if the old project print screen frame, is still 320x568

The problem can be seen in contrast to the automatically fitted and perfectly fitted navigation bar:

Because stretching so there will be some virtual, navigation bar is significantly larger than 64, but compared to 3.5 inches to 4 inches of black side is still a lot better.

How to turn off the automatic formula case? This is still the old idea, change the start diagram:

In addition to changing the start diagram, it is necessary to say that a xib can be used to set up a startup diagram in the new Xcode:

However, this xib can not be associated with any code (can not customize the view class, not Iboutlet, cannot add object), it is understood that this xib is a screenshot, the advantage of this scheme is that you can use the size Classes for different screen layouts this xib

  About manual Matching

Just manually specify the startup diagram or the Xib, screen resolution has become the appropriate size, the old code all about the death frame value of the code all unlucky, if the manual adaptation will be all fit, the proposal to find a feasible solution before the modification, the automatic adaptation scheme is not affected use.

Faced with 4 resolutions of the iphone, we recommend using the Auto layout layout + image assets to manage each resolution picture + Interface Builder (xib+storyboard) Build Ui,size Classes's performance in the lower version of the iOS system is unknown. Want this manual adaptation plan, at least your project needs to deploy in ios6+, still do not need autolayout layout of will die quite miserable.

  About XCODE6

The emulator path was replaced with ~/library/developer/coresimulator/devices/.

Xcode6 has not found the IOS6 simulator, it is time to persuade people to give up ios7-

Now submit App Store mandatory need to support 64-bit, it's time to comb through all dependent third party LIB, update to 64-bit

One more thing ... According to the law of this life ...

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.