Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I support the taller iPhone 5 screen size?

Tags:

My app shows up letter boxed and I want it to stretch properly to fill the whole screen. I'm creating my main window with:

self.mainWindow = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

But I'm still getting the letter boxed behavior. Is there some other setting I need to set to get the full size of the mainScreen on the device?

I'm trying to avoid using any launch images if I can. I've tried this:

self.mainWindow.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;

and it doesn't seem to help. And I've looked through all the Info.plist options and found nothing that seems to match.

like image 484
David Weiss Avatar asked Sep 13 '12 00:09

David Weiss


People also ask

How do I resize my iPhone screen?

Double-tap the screen with three fingers or use accessibility shortcuts to turn on Zoom. To see more of the screen, do any of the following: Adjust the magnification: Double-tap the screen with three fingers (without lifting your fingers after the second tap), then drag up or down.

How do you shrink the screen on an iPhone 5?

Answer: A: You enabled Zoom in the Accessibility app. Start by double-tapping the screen with THREE fingers. Then go to settings/general/accessibility and turn off Zoom.

How do I tell the size of my iPhone screen?

Besides processor, memory or battery usage graphs, it can also tell you what resolution the display has. To find this information, open the app's menu and navigate to This Device -> Display. That is the place where you find your iPhone's or iPad's Screen Resolution.

How many pixels does the iPhone 5 have?

Just as predicted, Apple's brand-new iPhone 5 comes with a 4-inch display with a 16:9 aspect ratio and an 1136 x 640 resolution. That's good for 326 pixels per inch, exactly the same as the Retina display in the iPhone 4 and 4S.


1 Answers

I don't support your idea of avoiding launch images as they are there for a reason, but if you really wanna do it for some reason, you should use the [email protected] file (640x1136 px) like the one you get when creating a new project. It's just solid black, doesn't take up a lot of disk space and will look as if there are no launch images whatsoever.

Besides setting a 4-inch retina launch image, there is currently no known way to get full 1136 px height on the new screen.

like image 183
Filip Radelic Avatar answered Oct 11 '22 14:10

Filip Radelic