gpt4 book ai didi

ios - 带有 UITabBarItem 的主从细节?

转载 作者:行者123 更新时间:2023-11-29 03:41:28 25 4
gpt4 key购买 nike

可以在 UITabBarController 中嵌入分割 View Controller 吗?我在窗口的 appdelegate 中有一个 UITabBarController,我尝试向我的 Split View Controller 添加一个 segue,但是当我按下 DetailViewController 的相关选项卡时,它只显示一个空白屏幕?是否可以将分割 View Controller 作为选项卡 Controller 中的选项卡?

This is a picture of the storyboard

最佳答案

UISplitViewController 必须位于 Controller 层次结构的根部。来自 Apple 的 Split View Controllers文档:

A split view controller must always be the root of any interface you create. In other words, you must always install the view from a UISplitViewController object as the root view of your application’s window. The panes of your split view interface may then contain navigation controllers, tab bar controllers, or any other type of view controller you need to implement your interface. Split view controllers cannot be presented modally

关于ios - 带有 UITabBarItem 的主从细节?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18391139/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com