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:
更多推荐
发布评论