Auto Layout proportionally Scaling Views

前端 未结 2 1206
情深已故
情深已故 2020-12-14 19:43

I have already found several questions and answers about this topic but I simply cannot get this to work for me.

2条回答
  •  萌比男神i
    2020-12-14 20:01

    Try proportional height and width. You need to make constraints for Equal Heights and/or equal Widths and then you double click on the constraint and change the multiplier for example 0.2 if you wish to make First Item to be 20% of second item in width and 2.0 for 200% (means double) in width. to make it increase or decrease proportionally according to your requiremententer image description here

提交回复
热议问题