UIsplitViewController 不是 RootViewController
我想显示 SplitViewController 视图。但我不希望我的 SplitViewController 作为 rootView Controller 。我希望 UInavigationViewController 作为 rootViewController 并希望在第一个视图之后呈现 SplitViewController 视图。这可能吗?
I want to show SplitViewController view. But I don't want my SplitViewController as the rootView Controller . I want UInavigationViewController as rootViewController and want to present SplitViewController view after first view. Is this possible ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
否。Apple 文档“分割视图控制器的视图应始终安装为应用程序窗口的根视图永远不应该在导航或标签栏界面中呈现分割视图。”您可以在 UISplitViewController 上以模态方式显示其他视图,使其看起来好像不是根控制器......
No. Apple Documentation "The split view controller’s view should always be installed as the root view of your application window. You should never present a split view inside of a navigation or tab bar interface." You might modally display other views over the UISplitViewController to make it appear as if it were not the root controller...
我在这个问题中的回答可能对您有帮助,
删除拆分视图并在整个屏幕中显示另一个 xib
谢谢,
Naveen Shan
My answer in this question may help you,
remove-split-view-and-show-another-xib-in-the-whole-screen
thanks,
Naveen Shan