Reputation: 1233
I want to have to buttons, which are horizontally centered in the container. Because they would overlap I want them to be a little offset from the center. I tried it with the multiplier.
If the button is in the center (as normal) the multiplier is 1. So I thought that for the left button, I specify a multiplier of 1,2 and for the right button 0,8.
And also, why is the constraint of the left button moved an the other one not?
Upvotes: 1
Views: 574
Reputation: 154701
I can't speak to the behavior of the multiplier for the center align constraint. If I were doing this, I would:
TOR
to the top, left, and bottom of the new view, all with constants of 0.STRAFE
to the top, right, and bottom of the new view, all with constants of 0.TOR
to STRAFE
with a horizontal spacing of 20. Fix any misplaced views by updating their frames.Upvotes: 1