Search code examples
ios6xcode4.5iphone-5

Submitting an iphone 5 optimized app to app store


When I started creating my app in xcode, all of the view controllers in the main storyboard were the iphone 5 4 inch display. So I have finally completed my iphone 5 app, however, when I run the app on an iphone 4 simulator everything is overlapping and skewed. Do I have to completely duplicate the app and downscale all my views to the iphone 4 3.5 inch display, or do I just go ahead and submit the app as it is?


Solution

  • What you should be doing is either:

    a) Turn on auto-layout in your storyboard file and make sure that the views are correctly laid out in both screen sizes. There is a button in the Storyboard that toggles the sizes:

    enter image description here

    b) figure out what the screen size is in code and modify their positions accordingly.

    Option a) is the easiest one to do.