简体   繁体   English

为什么UINavigationBar会切断我的部分UIBuilder而不是在测试时将其切断?

[英]Why does the UINavigationBar cut off part of my UIBuilder but not cut it off when tested?

在此输入图像描述

As you can see in the image (in the UIBuilder), the UINavigationBar takes up probably 60px of space at the top, but that does NOT show up in the simulator. 正如您在图像中看到的那样(在UIBuilder中),UINavigationBar在顶部占据了大约60px的空间,但这并没有出现在模拟器中。 The image you see above it how I have to put those view in order for them to be as far from the top of the status bar as they are from the sides. 您在上面看到的图像我必须如何放置这些视图,以使它们远离状态栏的顶部,因为它们来自两侧。 How can I fix this? 我怎样才能解决这个问题?

As suggested by user vaibhav, this fixed the issue. 正如用户vaibhav所建议的, 这解决了这个问题。

You need to click on your main view, go to attribute inspector, and un-click 'Adjust Scroll View Insets'. 您需要单击主视图,转到属性检查器,然后取消选中“调整滚动视图插入”。 That is all. 就这些。 Thanks for the help! 谢谢您的帮助!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM