【问题标题】:Setting width constraint for label on Storyboard relative to the width constraint of another label in the same stack设置故事板上标签的宽度约束相对于同一堆栈中另一个标签的宽度约束
【发布时间】:2020-07-23 12:54:00
【问题描述】:

如何在 swift 上设置标签的宽度约束,使其始终等于使用情节提要的同一堆栈中另一个标签的宽度?

【问题讨论】:

    标签: ios swift autolayout storyboard


    【解决方案1】:

    Ctrl-单击-从一个标签拖动到另一个标签。

    松开鼠标按钮。

    然后从弹出窗口中选择等宽。

    【讨论】:

      猜你喜欢
      • 2017-06-07
      • 1970-01-01
      • 2017-06-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-12-10
      相关资源
      最近更新 更多