简体   繁体   English

Xcode约束不起作用

[英]xcode constraints not working

I'm trying to figure out how the new Xcode constraints work, but it doesn't make sense. 我试图弄清楚新的Xcode约束是如何工作的,但这没有任何意义。 I'm trying to set the top, left, and bottom constraints at 0 from view borders for a table view so when I resize the window, my table would resize to fill from top to bottom. 我正在尝试将表格视图的视图边界的顶部,左侧和底部约束设置为0,因此,当我调整窗口大小时,表格的大小将从顶部到底部进行填充。 But it stays the same size when I resize the window. 但是当我调整窗口大小时,它保持不变。 When I launch the app in full screen, the table is getting set to top to bottom, but if I make the window smaller, I think it cuts half of it off. 当我以全屏模式启动该应用程序时,表格将设置为从上到下,但是如果我将窗口缩小,我认为它会将其中的一半切掉。 Seems like it doesn't refresh when I click the resize window button. 当我单击“调整大小”窗口按钮时,它似乎没有刷新。 Anyone have any ideas? 有人有想法么? Thx 谢谢

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

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