how to give constraints for UIbuttons

2019-09-08 15:27发布

问题:

how to give constraints for the buttons in the bottom as shown in image.

回答1:

select all 5 UIButtons and give equal widths constraints. give following constraints forr all buttons:

1.Height constraint.

2.Leading Constraint.

2.Bottom Constrain.

4.Equal Width Constraint

5.Trailing Constraint(if necessary)

check here :Arrange 3 UIButtons(of equal width) side-by-side