0
從我的根視圖導航控制器,即UIViewController
似乎沒有任何問題。但是,當我從其他視圖控制器Segue公司的拆分視圖,我如何從視圖控制器繼續分割視圖控制器沒有使它成爲我的根視圖控制器
拆分視圖控制器不能推到導航控制器
情況發生。
這裏是我的appdelegate
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
let storyboard = UIStoryboard(name: "Main", bundle: nil)
let split = storyboard.instantiateViewControllerWithIdentifier("SplitViewContoller") as! UISplitViewController
let splitViewController = split
let navigationController = splitViewController.viewControllers[splitViewController.viewControllers.count-1] as! UINavigationController
navigationController.topViewController!.navigationItem.leftBarButtonItem = splitViewController.displayModeButtonItem()
splitViewController.delegate = self
return true
}