Because I think many people will ask this question (because I was) ...
Now that the latest version of Xcode allows us to test our programs on the iPhone 5 simulator, you may have noticed that your application was a “mailbox” showing black borders at the top / bottom (or left / right, depending on the orientation). There is a very simple solution for this (although this is not the right solution) that will automatically process your application as if it were created for a new iPhone.
1) Create a new application project. 2) Find the file "Default-568h@2x.png" in the project folder. 3) Add this file to your project
What is it. Interestingly, if you remove the splash of the image, it will work correctly (which tells us that this is not the right decision, but it makes the right decision in the project). Of course, you can customize this image the way you want, but basically this is how you tell the iPhone 5 to display the "full screen mode" application.
Then, to fix the presentation size formatting for both types of devices, make sure that you use
[[UIScreen mainScreen]bounds];
instead of explicitly specifying the screen size. IE, if your view was CGRectMake(0,0,310,420);
he should be
CGRectMake(0,0,bounds.size.width-10,bounds.size.height-60);
And just in case, if you do not know, the new iPhone screen size is 640x1136 (cut in half for non-retina).
The more you know ...
ps someone higher level add iphone5 tag to this
iphone screen ios6 fullscreen iphone-5
n_b Sep 13 2018-12-12T00: 00Z
source share