在Storyboard中在X和宽度之间设置NSLayoutConstrain?

时间:2018-12-31 17:11:43

标签: ios storyboard nslayoutconstraint

这是不是通过编程方式而是从情节提要中设置视图的X应该为包含视图的宽度的0.3的方法吗?

1 个答案:

答案 0 :(得分:0)

是的,您需要制作

leading = 0.3 of parentTrailing

enter image description here

OR

leading = 0.6 of parentCenterX

enter image description here