How can I develop or migrate an iphone to adapt to the iphone 5 screen ?, Migrate iphone

Source: Internet
Author: User

How can I develop or migrate an iphone to adapt to the iphone 5 screen ?, Migrate iphone

The new iPhone 6 uses a new aspect ratio and a new resolution (640x1136 pixels ).

How to Adapt existing apps to the screen size

How can an app adapt to different screen resolutions? Don't adjust it every time?

IPhone IOS screen resolution and iPhone 6

Solution


1. download and install the latest version in Xcode.
2. Set a boot image of 4.7 and 5 inch for your application. It is mainly used to adapt to the current screen height (previously incompatible images ).
3. Set automatic resizing. If your image is correct, there should be no major problems.
4. If the effect is not reached, you need to adjust the view layout to automatically adapt
5. If you have other special requirements, you can handle them as follows:
For example:
Example:
CGRect screenBounds = [[UIScreen mainScreen] bounds];
If (screenBounds. size. height = 568 ){
// Code for 4-inch screen
} Else {
// Code for 3.5-inch screen
}
Also note: The auto-rotation API has changed completely, take a look at that as well if your application supports any rotation other than default.


Note: The auto-rotate API has completely changed.


Address: http://www.itmmd.com/201410/84.html
This article is organized and published by Meng IT personnel. The reprinted article must indicate the source.

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.