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.
我在导航控制器中嵌入了多个视图控制器,其中一个导航栏的大小是其他导航栏的两倍(向下延伸两倍)。我希望所有这些条的大小相同,但无论如何都无法在 Inspector 中更改大小。此导航栏上没有条形按钮。有什么想法可以快速修复而无需重建此 VC?
谢谢
默认UINavigationBar高度为 44 磅且无法更改。我认为您有一个约束问题:选择错误的尺寸UINavigationBar并在右上角的“实用程序”中选择“尺寸检查器”。然后,查看几个约束,编辑和/或删除一些约束。
UINavigationBar