2014-09-12 88 views
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]; 

这里cachedAssetBrowserUINavigationController实例,tabBarControllerUITabBarController

因此,将UITabBarController推送到UINavigationController的堆栈显然是“可行的”,但为什么文档声明“不能”完成,以及这样做的缺陷是什么?

回答

0

我已经在下面的链接中提供了一个解决方案。请仔细检查一次。 How do you Show tabbar after Signup or login iOS7

+0

是的,我知道这是可能的。我的问题是:苹果文档为什么说它无法完成,这种方法有什么缺陷(如果有的话)? – 2014-09-12 11:06:15

相关问题