嵌套导航控制器
我有一个相当简单的基于导航的应用程序。它就像一个“向导”,因为用户选择一系列首选项是逻辑上顺序的方式(即后续选项由先前的选择决定)。
执行此操作 (a) ->那么这个(b)->然后这个(c)然后这个(d)。
啊,但现在我想要一个简单的两阶段导航控制器,它只在阶段 (b) 中起作用。 具体来说,viewController 1 是“收藏夹”表,viewController 2 是许多可能选择的表。
因此,我需要在更大的总体导航控制器中嵌套阶段 (b) 的导航控制器。
我就是无法完全理解这个问题。我是 IB 粉丝,但如果需要的话愿意以编程方式进行。
有想法吗?
I have a fairly straight-forward navigation based app. It is like a "wizard" in that the user selects a series of prefs is a logically sequential way (that is, the subsequent options are determined by the previous choices).
Do this (a) -> then this (b) -> then this(c) then this (d).
Ah, but now I want to have a simple 2-stage navigationController that just functions in stage (b).
To be specific, viewController 1 is a table of 'favorites' and viewController 2 is a table of many possible choices.
So, I need to nest a navigationController for stage (b) within the bigger, overarching navigationController.
Just can't quite get my brain around this one. I'm an IB fan, but willing to do it programmatically if needed.
Ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于任何感兴趣的人......
我想出了这个优雅的解决方案。
我将“管理”viewController(1)推到主navigationController(1)上,然后在该viewController(1)中添加另一个navigationController(2)/分配真正的根viewController(2)/然后设置navigationController(2)视图到管理VC(1) 视图。中提琴!
几位代表之后,我有了一个带有嵌套导航的非常流畅的应用程序。
For anyone interested...
I came up with this elegant solution.
I push a 'managing' viewController(1) onto the main navigationController(1), and then in that viewController(1) I add another navigationController(2) / assign the real root viewController(2) / then set the navigationController(2) view to the managingVC(1) view. Viola!
A few delegates later and I have a very slick app with nested navigation.