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.