iOS - Auto Layout vs Different storyboards for different screen sizes

1k Views Asked by At

I have an app that is finished with several views, but the problem is that it's built for the 4-inch screen, and I am struggling with Auto Layout. My buttons in the main page are either too large, or the same size as the 4-inch, after I play with the height by 1 pixel ( I was using the equal widths and heights ).

Can I use different storyboards for the 4.7 and 5.5 inch devices instead of Auto Layout, and later on submit it to the App Store? I'm using Xcode 7 beta 3, and whenever I play with constraints, Xcode crashes.

2

There are 2 best solutions below

0
On

Yeah there may be some case where you have to use two storyboards, one for iPhone device and next one for iPad. But single storyboard for single device is highly discouraged. If you are having trouble with the storyboards then why not do programmatically? But I suggest you to learn storyboard because it is one of the good thing apple has provided in Xcode.

4
On

Universal storyboard (AdaptiveLayout) with size classes are speficcally for this purpose, its highly recommended that you use storyboard with size classes to support different UI for different devices and orientations. It will make your app more maintainable in future, and if you are going to use new iOS9 features (like using app in split view)etc then its worth while you learn this. To get started visit hereenter link description here