我们可以在 iPad 的单个视图中拥有两个导航流程吗?
我想在应用程序同时使用时向用户显示两种不同的导航流程。
我的要求如下:
在基于视图的应用程序中,我想要两个表视图 A 和 B(A 在顶部,B 在底部)。当用户选择表 A 中的一行时,通过推动另一个视图控制器,将向用户显示详细的视图。此时,导航应该仅在顶级视图的情况下发生,而底部表视图不应对此产生任何影响。
我应该能够对表视图 B 执行相同的操作。
更新:
它应该如下所示:
I wanted to show two different Navigation flows for the user when the App is in use at the same time.
My Requirement is as below:
In a View based Application, I wanted to have two Table Views A and B (A at top and B at Bottom). When user selects a row in Table A, a detailed View is shown to user, by pushing another View Controller. At this point in time, the Navigation should happen only in case of the Top Level View and the bottom Table View should not have any effect on this.
And I should be able to do the same for Table View B.
UPDATE:
It should look like this:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试: http://mattgemmell.com/2010/07/31/mgsplitviewcontroller- for-ipad/
它是 UISplitViewController 的替代品,并且可以选择进行水平分割以及设置分割的大小,以便您可以让它看起来像你那里有的。
Try: http://mattgemmell.com/2010/07/31/mgsplitviewcontroller-for-ipad/
It is a replacement for UISplitViewController and has an option to do a horizontal split as well as set the size of the split so that you can make it look like what you have there.
如果您的目标是 iOS 5,则可以使用 UIViewController Containment。有一个很好的 WWDC 2011 视频关于主题。
否则,您唯一的选择是将“子”UIViewController 的视图添加到“父”UIViewController 的视图,并手动将父 UIViewController 委托方法调用传递给子视图。例如,以下是 MGSplitViewController 的片段(由 @Inafziger 提到):
If you are targeting iOS 5, you can use UIViewController Containment. There is a good WWDC 2011 video on the topic.
Otherwise, your only option is to add a "child" UIViewController's view to a "parent" UIViewController's view and manually pass the parent UIViewController delegate method invocations to the child. For instance, here is a snippet from MGSplitViewController (mentioned by @Inafziger):