1

enter image description here

I am having hard time laying out my buttons. I want them to have equal margin from left and right.

rmaddy
  • 314,917
  • 42
  • 532
  • 579

1 Answers1

1

This is an equal distribution problem. It is in fact extremely tedious to solve by hand! (See my explanation here if you want to know the gory details.) That is why you should use a UIStackView. It will perform equal distribution for you, by making for you, automagically, the constraints that you would have had to make in order to accomplish the same thing.

Community
  • 1
  • 1
matt
  • 515,959
  • 87
  • 875
  • 1,141