Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to develop or migrate apps for iPhone 5 screen resolution?

The new iPhone 5 display has a new aspect ratio and a new resolution (640 x 1136 pixels).

What is required to develop new or transition already existing applications to the new screen size?

What should we keep in mind to make applications "universal" for both the older displays and the new widescreen aspect ratio?

like image 662
Lukasz Avatar asked Sep 12 '12 19:09

Lukasz


People also ask

Can you adjust iPhone screen resolution?

In case you want to enter custom resolution you have to do it manually, by going to Settings> Upscale in the lower section, you can enter your custom resolution in the “x” and “y” sections.

What is screen resolution on iPhone 5?

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.

How do I reduce the size of my iPhone 5 Screen?

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.


1 Answers

  1. Download and install latest version of Xcode.
  2. Set a Launch Screen File for your app (in the general tab of your target settings). This is how you get to use the full size of any screen, including iPad split view sizes in iOS 9.
  3. Test your app, and hopefully do nothing else, since everything should work magically if you had set auto resizing masks properly, or used Auto Layout.
  4. If you didn't, adjust your view layouts, preferably with Auto Layout.
  5. If there is something you have to do for the larger screens specifically, then it looks like you have to check height of [[UIScreen mainScreen] bounds] as there seems to be no specific API for that. As of iOS 8 there are also size classes that abstract screen sizes into regular or compact vertically and horizontally and are recommended way to adapt your UI.
like image 79
Filip Radelic Avatar answered Sep 24 '22 00:09

Filip Radelic