I downloaded a demo on the Internet, IPhone4 and iphone4s to show that everything is OK. However, the use of iPhone5 and so on when the problem of display is not complete when I use IPhone5 and iphone5s real machine test, in the application of the top and bottom of the screen have a black, screenshot as follows:
Check the problem steps:
First, I began to carefully examine the code, found that in the entire project, there is no place in the setting screen height when the use of a fixed value of 480, are directly to get the screen size, and then set the screen size.
Second, check project resources, confirm that you have added Default.png, Default@2x.png, Default-568h@2x.png startup pictures, and other resources.
Solution: The
configuration of a project is like this, screenshots are as follows:
Other demo projects are configured as follows:
Only need to configure the launch image to the following image of the option, the specific operation of the following figure:
It is recommended to create a picture of the screen size of all iphone models. Drag and drop the prepared picture into the corresponding box in the Launchimage, remove the original App,clean project on the phone, and run it again.