How do I develop or migrate my iphone to fit the iphone 5 phone screen?

Source: Internet
Author: User

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

How to adapt an existing app to this screen size

How can you make an app adapt to different screen resolutions? You don't have to adjust every time?

IPhone iOS screen resolution with IPhone6

Processing methods


1. Download and install the latest version of Xcode.
2. Set a 4.7 and 5, 5-inch boot image for your application. Mainly used to adapt to the existing screen height (previous images are incompatible).
3, set the automatic resizing, if your picture is correct, there should not be too much problem.
4, if the effect has not been achieved, you need to adjust the layout of the view automatically adapt
5, if you have other special requirements, you can follow the following ways to deal with
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 have changed completely, take a look at so as well if your application supports any rota tion other than default.


Also note that the auto-rotation API has completely changed


Original address: http://www.itmmd.com/201410/84.html
This article by Meng Meng's IT person to organize the release, reprint must indicate the source.

How do I develop or migrate my iphone to fit the iphone 5 phone screen?

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.