ios - iPhone X Swift 底部有空白

标签 ios iphone swift

我知道还有另一个具有相同问题的问题,但答案并没有解决我的问题。

enter image description here

我已经尝试过解决方案here但我仍然得到了空白。

enter image description here

我的底部约束是 SuperView,而不是底部布局指南。我尝试过通过代码扩展安全区域,但仍然没有任何效果。

我在此 View 中使用另一个嵌入式 View Controller 。

更新

查看层次结构 enter image description here

最佳答案

删除任何 Storyboard View Controller 中的“安全区域”。然后像这样相应地设置约束。

enter image description here enter image description here

关于ios - iPhone X Swift 底部有空白,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48558145/

相关文章:

swift - watchOS 退出代码

objective-c - 如何获得本地化的 Cancel、Done 等?

iphone - 访问 iPhone 视频输出图像缓冲区时 FPS 较低

ios - 保存推送通知并在 UITableView 中显示

iphone - 带参数的 UIBarButtonItem 操作

iphone - UITableView 中的 UIImageView 渲染延迟

ios - CDYelpFusionKit 初始化错误

ios - 使用 RxSwift 循环

ios - Swift 中的开关 - 开关中的 Case 标签应该至少有一个可执行语句

iphone - IOS 应用程序的安全码