AutoLayout to keep view sizes proportional

前端 未结 9 875
南笙
南笙 2020-12-04 23:53

I\'m trying to achieve the following:

  • I have 2 views in my xib that need to stay 20 pixels off the edge (both sides and top)
  • The 2 views that need to
9条回答
  •  南方客
    南方客 (楼主)
    2020-12-05 00:04

    In Interface Builder drag the view with right button (just a bit to display black popup).
    In popup menu select Aspect Ratio.

提交回复
热议问题