【问题标题】:Set NSLayoutConstrain between X and width in Storyboard?在 Storyboard 中的 X 和宽度之间设置 NSLayoutConstrain?
【发布时间】:2019-05-28 03:01:35
【问题描述】:

这是不是以编程方式而是从 Storyboard 中设置视图的 X 应该是包含视图宽度的 0.3 的一种方法?

【问题讨论】:

    标签: ios storyboard nslayoutconstraint


    【解决方案1】:

    是的,你需要做到这一点

    leading = 0.3 of parentTrailing
    

    leading = 0.6 of parentCenterX
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-09-02
      • 2014-10-03
      • 1970-01-01
      • 1970-01-01
      • 2018-09-14
      相关资源
      最近更新 更多