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?