简体   繁体   English

相对于同一堆栈中另一个 label 的宽度约束,在 Storyboard 上为 label 设置宽度约束

[英]Setting width constraint for label on Storyboard relative to the width constraint of another label in the same stack

How do I set the width constraint of my label on swift so that it is always equal to the width of another label in the same stack using the Storyboard?我如何在swift上设置我的label的宽度约束

Ctrl-click-drag from one label to the other.按住 Ctrl 并单击并从一个 label 拖动到另一个。

Release mouse button.释放鼠标按钮。

Then select Equal Widths from the popup.然后 select Equal Widths 从弹出窗口。

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

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