下面是我的 Main.storyboard,它有标签栏 Controller 。我希望在其中一个选项卡中显示一个 Split View Controller 。 splitVC 在其他 Storyboard中,如第二张图所示
这是第二个 Storyboard,它有一个 Split View Controller 。
我无法使用以下方法在主 Storyboard中显示它: • 使用容器 View :我尝试以编程方式在容器 View 中显示 splitVC,但它抛出错误提示:ContainerView 必须在索引 1 处具有 View Controller (我尝试了容器 View ,如第一张图片所示。)
谁能建议在标签栏上显示它的最佳方式?或者如果我没有正确地使用容器方法?
最佳答案
嗨@Divjyot Answers here might help苹果建议 UISplitViewController 应该始终是 rootviewcontroller
这是苹果的笔记
You cannot push a split view controller onto a navigation stack. Although it is possible to install a split view controller as a child in some other container view controllers, doing is not recommended in most cases. Split view controllers are normally installed at the root of your app’s window. For tips and guidance about ways to implement your interface,
关于ios - 如何在不同 Storyboard 的标签栏上显示 Split View Controller ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38450947/