Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个视图,我想通过顶部的导航和底部的标签栏来显示它。此视图将从顶级选项卡栏控制器中的选项卡打开。
当我在此视图的选项卡栏控制器中嵌入导航控制器时,我的 ViewController 内的安全区域会发生变化。嵌入操作会从顶部和底部添加一些偏移量。
在嵌入之前它看起来像:
嵌入后更改为:
视图设置窗格如下所示:
为什么会这样?我该如何解决这个问题?
Shows Navigation Bar我通过取消导航控制器的设置解决了这个问题。
Shows Navigation Bar