我一直在寻找一种实现下面层次结构的好方法。
我已经完成了登录和UITabBarController
其他三个视图的实现。
我现在需要的是让选定的选项卡充当rootviewcontroller
我即将实现的选项卡UINavigationcontroller
,它应该处理从详细视图推入和弹出到详细视图。
层次结构总结:
LoginView--
TabBarController - Holds it's own view and the three views below.
OneView (If selected should be root for UINavigationcontroller)
- DetailView (DetailView of OneView)
-DetailView (Details of detailview)
AnotherView (If selected should be root for UINavigationcontroller)
- DetailView (DetailView of AnotherView)
-DetailView (Details of detailview)
AThirdView (If selected should be root for UINavigationcontroller)
- DetailView (DetailView of AThirdView)
-DetailView (Details of detailview)
lon、schema 和 tidsaldo 这三个视图都连接到UITabBarController
interface builder 中。
所以,我基本上需要帮助的是一些关于如何使这三个选项卡中的任何一个成为我的UINavigationController
.
我尝试过的是抓住并添加当前的App Delegate
子视图。但这让我不知何故松开了标签栏。rootviewcontroller
UINavigationController
任何提示和/或指针都非常感谢。
PS。可能有错别字。