xcode 4.5 how to pick storyboards at launch

Xaphann picture Xaphann · Sep 21, 2012 · Viewed 25.5k times · Source

Trying to make my app work with both iPhone 5 and iPhone 4/4s. I tried the "AutoLayout" but does not seem to work for my app also read that it is not supported in iOS 5. AutoLayout specifically fails on a view controller that has an UIScrollview and a UIPicker that is re-sized in code. Having two Storyboards one for 4 inch and one for 3.5 inch seems the way to go.

The two Storyboard aproch seem to be the solution for me. So this leaves me with two questions;

  1. Where should the code to detect then if it is a 4/4s/5 go? I would assume in the appDelegate.m in the didFinishLaunchingWithOptions method

  2. How do I change the "Main Storyboard"?

Answer

fields.cage picture fields.cage · Sep 21, 2012

This is a great question.