ios - UISplitViewController 中的导航 Controller 为底栏留出空间

标签 ios cocoa-touch uinavigationcontroller storyboard uisplitviewcontroller

如标题所示,我在使用 UINavigationControllers 作为 UISplitView 中的主视图和详细 View 时遇到问题。导航 Controller 为底栏留出空间。当我删除导航 Controller 时, View 呈现得很好。

Storyboard看起来像:

TabBarController -> SplitView -> UINavigationController(master 和 detail) -> 每个的 ViewControllers。

我可以通过添加 40 像素的额外空间作为约束来“破解” View 以正确呈现,但我宁愿不这样做。

我错过了什么?

编辑:我在一个空项目中模拟了所有内容,默认情况下它似乎工作正常。似乎我在我的主项目中更改了一些设置或做了一些导致此问题的事情。

The gray space is what I am trying to remove.

最佳答案

打开设置“Under Opaque Bars”

关于ios - UISplitViewController 中的导航 Controller 为底栏留出空间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32528930/

相关文章:

ios - UIKIt - 删除状态栏但保留空间

ios - 向 TabBar 应用程序添加 UI 导航

ios - UIImageView 未在 3,5 屏幕上完全显示

objective-c - 在 iOS 中设置标题

cocoa-touch - 如何通过拨动开关应用设置?

ios - 如何获得 subview 在我的 UITableViewCell 中相对于整个窗口的位置?

javascript - iOS 中的 Acrobat javascript API

ios - 计算 CMMotionActivity 间隔

objective-c - 如何在 Objective-C 类中包装 .c native 库方法

ios - 从 block 返回导航