iOS Storyboard UISplitViewController顺序全屏显示 [英] iOS Storyboard UISplitViewController Seque to Full Screen

查看:104
本文介绍了iOS Storyboard UISplitViewController顺序全屏显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此处是iOS新手问题.

iOS newbie question here.

我将UITabBarController作为我的根控制器,并将UISplitViewController作为孩子.我想通过导航和选项卡栏将演示图板从splitviewcontroller的详细信息视图中推(推)到全屏(就像详细信息视图是全屏一样).我猜测无法通过界面生成器完成此操作,并且需要一些自定义代码来执行此操作,但是我不确定从哪里开始寻找如何执行此操作.我浏览了Apple文档,但在该主题上找不到太多.任何帮助/方向如何做到这一点,将不胜感激.

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.

推荐答案

创建您自己的容器视图控制器,而不是使用UISplitViewController,以便您可以在需要时删除主视图.在标题为实现容器视图控制器"的部分下,查看UIViewController的文档.

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".

另一种可能性是使用UISplitViewController替代品之一,即使在横向模式下,该替代品也可以隐藏主视图.

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是很多人使用的一种: Github链接

MGSplitViewController is one that a lot of people use: Github link

这篇关于iOS Storyboard UISplitViewController顺序全屏显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆