UIsplitViewController 不是 RootViewController

发布于 2024-09-12 11:02:17 字数 182 浏览 2 评论 0原文

我想显示 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

陌若浮生 2024-09-19 11:02:17

否。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...

抚笙 2024-09-19 11:02:17

我在这个问题中的回答可能对您有帮助,

删除拆分视图并在整个屏幕中显示另一个 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文