UISplitViewController显示灰色条(UISplitViewController showing grey bar)

编程入门 行业动态 更新时间:2024-10-10 10:30:29
UISplitViewController显示灰色条(UISplitViewController showing grey bar)

我们正在使用UISplitViewController。 当不在“分割模式”时显示详细视图控制器时,屏幕顶部会出现一个灰色条。 有谁知道为什么会发生这种情况。 在拆分视图中,详细视图会正确显示。

We're using UISplitViewController. When displaying the detail view controller when not in "split mode" there is a grey bar at the top of the screen. Does anyone know why this is happening. The detail view displays correctly when in split view.

最满意答案

在查看关于该主题的教程时,我注意到详细视图控制器嵌入在导航控制器中。 我们遵循了这种做法,它解决了这个问题。 我不知道为什么这完全奏效。

我们的Storyboard现在看起来像:

在这里输入图像描述

When viewing a tutorial on the subject I noticed that the detail view controller was embedded in a Navigation Controller. We followed that practice and it solved the issue. I'm not sure why this worked entirely.

Our Storyboard now looks like:

enter image description here

更多推荐

本文发布于:2023-08-05 15:32:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1435184.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:灰色   UISplitViewController   showing   bar   grey

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!