Storyboard - 如何在基于导航的应用程序中从视图控制器连接到 SplitViewController
我有一个基于 iPad 应用程序的导航控制器。我正在使用故事板进行应用程序设计。我需要从导航堆栈中的 ViewController 之一转到显示 splitviewcontroller 的屏幕。我该怎么办?
预先感谢您对此的任何帮助。
I have a navigation controller based iPad application. I am using storyboards for the app design. From one of the ViewControllers in the Navigation stack, I need to segue to a screen showing splitviewcontroller. how to I go about that ?
Thanks in advance for any help on this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
UISplitViewController
必须始终是您使用的第一个/主视图控制器。您不能从UINavigationController
或UITabBarController
或类似的地方使用它。A
UISplitViewController
must always be the first/main view controller you use. You can't use it from aUINavigationController
or aUITabBarController
or similar.我遇到了完全相同的问题,我通过实现自定义转场解决了它。
这似乎对我有用。我希望当我向苹果提交代码时这是一个可以接受的解决方案。
I had the exact same problem and I solved it by implementing a custom segue.
This seems to have worked for me. I hope this is an acceptable solution when I submit the code to apple.