iPad SplitView 带有多个视图控制器的导航堆栈
嘿, 我的出发点是这样的 在 xcode 上找到的 MultipleDetailViews 示例代码。 我正在尝试为 First- 和 SecondDetailViewController 创建一个单独的导航堆栈,以便推送新的视图控制器。 这个教程给了我很大的帮助,但我仍然无法无法包含导航堆栈。
我已经被这个问题困扰了一段时间,想知道是否存在一个简单的解决方案......
提前感谢您的任何建议。
Hey,
my starting point was this
MultipleDetailViews sample code found on xcode.
I am trying to create a separate navigation stack for the First- and SecondDetailViewController in order to push new view controllers.
A great help was this tutorial but I still couldn't manage to include the navigation stacks.
I have been stuck on this problem for a while and wonder if there exists a simple solution...
Thanks in advance for any suggestions.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在示例代码中,尝试打开 MainWindow.xib (en) 并删除“FirstDetailViewController”,将其替换为 NavigationController,为这个新的详细信息 NavigationController 添加 rootViewController,然后就可以开始了。
我想你知道下一步该做什么。希望有帮助。
In the sample code, try to open the MainWindow.xib (en) and remove the 'FirstDetailViewController', replace it with a NavigationController, add the rootViewController for this new detail NavigationController and you are good to go.
I guess that you know what to do next. Hope it helps.
看到这个我相信我遇到了完全相同的问题并且从未找到解决方法,直到几天我在 iTunes U 上观看一个不相关的讲座时,无论如何在您加载的新视图控制器中,您是否实现了 UISplitViewControllerDelegate ,(如果这不起作用,您是否尝试将 UISplitViewControllerDelegate 移动到主控制器)?
looking at this believe i had exactly the same problem and never found a way around it, until a couple of days when i was watching an unrelated lecture off of iTunes U, anyway in the new view controller that you load, have you implemented the UISplitViewControllerDelegate, (if this doesn't work have you tried moving the UISplitViewControllerDelegate to the master controller)?