0
UINavigationController pushViewController:animated:
选择器的文档声明视图控制器被推入接收器的堆栈“cannot be a tab bar controller”。使用UINavigationController pushViewController:动画:推UITabBarController
但是,在Apple的AVPlayerDemo sample code中,使用了这种确切的技术。从AVPlayerDemo:
// Add the tab bar controller's current view as a subview of the window
[self.cachedAssetBrowser pushViewController:self->tabBarController animated:NO];
这里cachedAssetBrowser
是UINavigationController
实例,tabBarController
是UITabBarController
。
因此,将UITabBarController
推送到UINavigationController
的堆栈显然是“可行的”,但为什么文档声明“不能”完成,以及这样做的缺陷是什么?
是的,我知道这是可能的。我的问题是:苹果文档为什么说它无法完成,这种方法有什么缺陷(如果有的话)? – 2014-09-12 11:06:15