Search code examples
iosuiviewcontrolleruisplitviewcontrolleruitabbar

Using multiple UISplitViewControllers in an app


I am looking for the best way to switch between multiple UISplitViewControllers in an iOS App.

I heard Apple does not want UISPlitViewControllers to not be rootViewControllers so I cannot use a UITabBar. Any ideas what I could use ?

Thanks


Solution

  • You can just switch to a new one in code (from a button or whatever) with self.view.window.rootViewController = myNewSplitViewController;