【发布时间】:2010-05-17 16:31:20
【问题描述】:
我想在导航控制器中有一个 TabBar 控制器。因此,当在第一个导航控制器上选择一个项目时,它会将 TabBar 推入视图。在第一个选项卡上的此选项卡栏内是另一个导航控制器。
但是我只想要一个导航栏。
我想出了 2 种方法,但不确定哪种方法更好(即更容易接受等)?
1) 第一个导航控制器实际上并不是一个导航控制器,但对用户来说它看起来像一个。因此,当在其 table view 上选择一个单元格时,第一个 navC 的 view 将从 superview 中删除并添加 TabBarC 的 view,动画必须手动完成。
2)The first NavC is actually a NavC and when an item is selected and the TabBar is pushed on to the screen the first NavC's navigationbar is hidden so that the first tab's navigationBar is the only nav bar on screen.
【问题讨论】:
标签: iphone objective-c tabbar navigationcontroller