iOS Storyboard UISplitViewController 序列到全屏
iOS新手问题请看这里。
我有一个 UITabBarController 作为我的根控制器,有一个 UISplitViewController 作为子控制器。我想将故事板序列(推送)从 splitviewcontroller 的详细视图到带有导航和选项卡栏的全屏(就像详细视图是全屏一样)。我猜想这无法从界面生成器完成,我需要一些自定义代码来执行此操作,但我不确定从哪里开始寻找如何执行此操作。我浏览了苹果文档,但找不到太多关于该主题的信息。任何有关如何进行此操作的帮助/指示将不胜感激。
iOS newbie question here.
I have a UITabBarController as my root controller with a UISplitViewController as a child. I want to storyboard seque(push) from the detail view of the splitviewcontroller to a full screen with the navigation and tab bar(as if the detail view were full screen). I'm guessing this can't be done from the interface builder and I'll need some custom code to do this, but I'm not sure where to start looking for how to do this. I've looked through apple documentation and can't find much on the topic. Any help/direction on how to go about this would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不要使用 UISplitViewController,而是创建您自己的容器视图控制器,以便您可以在需要时删除主视图。查看标题为“实现容器视图控制器”部分下的 UIViewController 文档。
另一种可能性是使用 UISplitViewController 替代品之一,它允许您即使在横向模式下也可以隐藏主视图。
MGSplitViewController 是很多人使用的一个:Github 链接
Instead of using a UISplitViewController, create your own Container View Controller so that you can remove the master view when needed. Check the documentation for UIViewController under the section titled "Implementing a Container View Controller".
Another possibility is to use one of the UISplitViewController replacements which allow you to hide the master view even when you are in landscape mode.
MGSplitViewController is one that a lot of people use: Github link