Big screen iphone enables high-resolution mode

Source: Internet
Author: User
from:http://blog.ibireme.com/2014/09/16/adapted_to_iphone6/

Published by Ibireme on 2014/09/16

Since Apple has a big screen iphone, iOS development has to be adapted, presumably Android programmers are stealing music;) Here's a summary of the big screen adaptations that you've learned about these days.

enable high-resolution mode

Starting with the Xcode6 GM version, the simulator adds the IPhone6 and IPhone6 plus two, and if the old project runs directly into these two simulators, the default is "Compatibility Mode", that is, the system will simply enlarge the content, the display effect is somewhat vague but acceptable. The device resolution and IPhone5 acquired within the app are the same: 320*568 point.

There are 2 ways to enable high-resolution mode (currently I can find):

1. Add the launchimage of the large screen:
In Images.xcassets, delete the old Launchimage group, and then create a new Launchimage group to add the corresponding high-resolution picture. Here's a more detailed description: How to Add a Launch Image for the IPhone 6. If you want to quickly test the new effect, here are 3 sample images to download.

2. Add Launch screen File

Launch screen is a new feature of Xcode6 and IOS8, and it uses a xib file as a splash. This property is automatically ignored when the app is launched in the previous version of iOS and does not cause an exception.
First, click New File->ios User Interface->launch screen, and then enable it in the project setup:

The above two settings allow the app to enter high-resolution mode as long as any one is enabled, but if neither is set, the app will fall back to compatibility mode. Given that many apps now need to be compatible with IOS5, and the first method may have bugs on iOS5, the second approach is recommended.

Display of resources

A picture wins thousands of words, first here is a complete chart: http://www.paintcodeapp.com/news/iphone-6-screens-demystified.

Simply put: IPhone4, IPhone5, iPhone6 the PPI of these devices are the same, the default image priority is @2x. IPhone6 Plus has a higher pixel density and the default image takes precedence over @3x.

In addition, IPhone6 Plus is a bit different from other devices: the screen resolution obtained within the app is 1242*2208, but the actual resolution of the device is 1920*1080, when the system will zoom in on the overall display, downscale to 1/1.15. This feature has also appeared on OSX:

Here are some of the data that might be useful:

Point Scale
iPhone iPhone4 iPhone5 iPhone6 iphone6+
320*480 320*480 320*568 375*667 414*736
Pixel 320*480 640*960 640*1136 750*1334 1242*2208
pexel (equipment) ~ ~ ~ ~ 1920*1080
1 2 2 2 3
PPI 163 326 326 326 401

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.