UISplitViewController 可以是 UITabViewController 中的选项卡吗?

发布于 2024-09-16 20:56:27 字数 364 浏览 4 评论 0原文

我可以将UISplitViewController作为UITabViewController中的一个选项卡吗?

我尝试使用分割视图控制器配置创建一个新的 NIB。并将带有 UISplitViewController 的选项卡作为类型添加到我的主窗口笔尖。我为 UISplitViewController 指定了 NIB。

什么也没发生。我可以使用 IB 将 split.nib 中定义的 UISplitViewController 链接为 mainwindow.nib 中的选项卡吗?不知道如何设置它以便选项卡控制器可以看到由分割视图控制器创建的视图。

Can I UISplitViewController be a tab within a UITabViewController.

I tried creating a new NIB with the Split View Controller configuration. And added the tab with UISplitViewController as the type to my mainwindow nib. I specified the NIB for the UISplitViewController.

Nothing happened. Can I use IB to link the UISplitViewController defined within my split.nib as a tab in my mainwindow.nib? Not sure how to set it up so that the tab controller can see the view created by the split view controller.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

鲜肉鲜肉永远不皱 2024-09-23 20:56:27

Apple 准则规定,您不能将 UISplitViewController 用作任何其他控制器的子级。它必须是应用程序的根视图控制器。

在某些情况下,如果您尝试在代码中执行此操作(而不是在 InterfaceBuilder 中),则会出现异常

Apple guidelines states that you cannot use a UISplitViewController as a child of any other controller. It must be the root view controller of your application.

In some cases, you'll get an exception if you try to do this in code (as opposed to in InterfaceBuilder)

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