【问题标题】: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 【讨论】: