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.
使用 NSLayoutConstraint 我可以添加表格视图,但在 Landscape 中,它们之间存在差距,因为我将常量 64 赋予它的顶部。有没有办法将导航栏的高度分配给它?
任何帮助将不胜感激。
如果您使用的是 .xib,请在 Attributes Inspector (4. tab) > Simulated Metrics > 为 Top Bar 选择 Navigation Bar。
使用导航控制器嵌入视图控制器。为此,请选择视图控制器并选择编辑器 -> 嵌入 -> 导航控制器