Group Group Group Group Group Group Group Group Group

Confusion about Advanced Auto Layout / Adaptive Layout



My app is a universal one using a storyboard.

I’m trying to get my head around the (overly) complicated Auto-Layout and Adaptive Layout, with specific regards to this problem:

The app uses a Tab Bar for major navigation, however one item on the tab bar needs to be displayed differently depending on whether iPad or iPhone.

On iPhone, I have several ViewControllers that can all be bundled together using a UIPageViewController - and that’s working.

Because I haven’t yet implemented proper Auto-Layout or Adaptive layout, then on the iPad it’s doing the same thing, however, on iPad I want to display all of these ‘small’ UIViewControllers within one UIContainerViewController.

Now, because I’m using Storyboards, do I now have to have two different storyboards, one for iOS and one for iPad? Do I keep one for the common parts and branch off where they diverge? If so, how does one handle that?

Or is there a clever ‘Adaptive Layout’ way to say on iPhone do this, on iPad do that, but rather than changes to the same ViewController, adaptive layout can handle this very large difference i.e. UIPageViewController vs UIContainerViewController with several UIViewControllers on screen at once?

Please help as this is now a blocker on my project; yes I’ve googled and I still can’t find a solution.