如何插入UINavigationController
inside UITabBarController
.
目前我有主要UITabBarController
像这样在应用程序委托内声明(所以选项卡是主要的)
self.window.rootViewController = self.tabBarController;
在我想要插入的选项卡之一内UINavigationController
,并且无法获取。
代码构造如下:
-
MainWindow.xib
with UITabBarController
选项卡类型为的对象UINavigationController
(指向NavigationHistory.xib
) - 截屏:无效的链接
-
NavigationHistory.xib
仅包含UINavigationController
视图指向 History.xib 的位置
-
History.xib
只有UITableView
元素-屏幕截图:无效的链接
And now UIViewController
不显示我的 View1 视图,我不知道为什么会这样。也许你有任何线索?或者指出完成此类配置的位置。
我自己来回答吧。很好解释在https://developer.apple.com/library/ios/#documentation/WindowsViews/Conceptual/ViewControllerCatalog/Chapters/CombiningViewControllers.html https://developer.apple.com/library/ios/#documentation/WindowsViews/Conceptual/ViewControllerCatalog/Chapters/CombiningViewControllers.html
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)