Split View Controller that supports iOS 9 multitasking for iPad
- -let splitViewController = AZSplitController()
splitViewController.sideController = (UIStoryboard(name: "Main", bundle: nil).instantiateViewControllerWithIdentifier("Left") as! UINavigationController)
splitViewController.mainController = (UIStoryboard(name: "Main", bundle: nil).instantiateViewControllerWithIdentifier("Center") as! UINavigationController)
splitViewController.templateViewController = (UIStoryboard(name: "Main", bundle: nil).instantiateViewControllerWithIdentifier("AnotherCenter") as! UINavigationController).viewControllers.first
templateViewController
used as mainController
after rotating from full screen mode
Thanks @spronin for the help
Created for @appintheair