Need assistance setting two buttons of equal width, side by side Autolayout

后端 未结 4 2011
臣服心动
臣服心动 2020-11-27 22:46

Using auto layout I am trying to create two buttons on the bottom like this

\"enter

4条回答
  •  鱼传尺愫
    2020-11-27 23:11

    You can have the equal widths constraint between the buttons, but you also have to tell them which is that width you need.

    So drag from a button to the superview, add an equal widths constraint. Then in the properties of the constraint you've added, set the multiplier to 0.5, this way your buttons should be on half the screen.

提交回复
热议问题