我想在https://github.com/CosmicMind/Samples/blob/master/Projects/Programmatic/NavigationDrawerController/NavigationDrawerController/RootViewController.swift的当前示例中对 rootViewController 执行 pushViewControllerNavigationDrawerController
以及在TransitionedViewController
https://github.com/CosmicMind/Samples/blob/master/Projects/Programmatic/NavigationDrawerController/NavigationDrawerController/TransitionedViewController.swift
如果我打电话什么都不会发生navigationController?.pushViewController(MyController(), animated: true)
如果将 NavigationController 附加到 rootViewController,则中心 rootViewController 将不会在点击 leftViewController 时发生变化
(navigationDrawerController?.rootViewController as? ToolbarController)?.transition(to: TransitionedViewController(), completion: closeNavigationDrawer)
这是因为rootViewController
没有NavigationController
. 如果我附加AppToolbarController
到 rootView,则导航将不起作用,如果我附加AppToolbarController
到 rootViewController,则navigationDrawer
转换将不起作用。
请帮忙!