iOS Autolayout: two buttons of equal width, side by side

前端 未结 5 964
一整个雨季
一整个雨季 2020-11-30 16:46

I am currently having difficulty with AutoLayout. I am using interface builder and am trying to position two buttons of equal width side by side as illustrated in the follow

5条回答
  •  情歌与酒
    2020-11-30 17:32

    You can check my example - you can easy aim this, by using proportional constraint. Also you can easy aim proportional multiple UIViews. Please look attached example

    https://dl.dropboxusercontent.com/u/48223929/TestViewController.xib

提交回复
热议问题