reprint please indicate source:http://blog.csdn.net/android_ls/article/details/39234963
During the process of writing iOS apps, I've been testing with the iphone Retina (3.5-inch) simulator, and everything looks normal, and the graph is as follows:
I use a pure code implementation in application development. The company provided a iphone4s, and I used it to test everything to show normal. The problem is that when I use the IPhone5 and iphone5s real-time tests, I find that my application is not covered with screen display on IPhone5 and iphone5s, but that there is a black on the top and bottom of the application screen, as follows:
Check the problem steps:
First, I began to carefully examine my code, found that in the whole project, there is no place in the 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 the project resources, confirm has added default.png, [email protected], [email protected] launch pictures and other resources.
III, I began to search the Internet, to see if there are users who encounter similar problems, how they resolved, and Try to provide a variety of methods (there is said If you have Xib, set the automatic layout of the view in Xib, if you use pure code, manually set UIView AutoLayout, ... ), and ultimately no results.
In the process, see a netizen because of this problem, caused by the release of the application was Apple rejected.
Solution:
1, I accidentally found that I wrote the demo can be in iphone5s real machine on the normal display, I will create a new project, and then run directly, showing normal, this time I was excited inside.
 2, I carefully compared two items of similarities and differences, found that" the project configuration of everything is the same ", the heart is wondering, no problem.
3, finally found that the configuration of a project is this, as follows:
Previously written demo project configuration such as:
Write here, I think you already understand, the cause of the problem is where, yes! Just use the launch image as the option to configure the following image, as follows:
Drag and drop the prepared picture into the corresponding box in the Launchimage, delete the original App,clean project on the phone, and re-run it!
iOS apps can't be displayed full screen on IPhone5 and iphone5s, with 1 black solutions on top and bottom of the app screen