I have two buttons which should take up half the width of the view, each.
I have:
- leading-space constraint on the left-hand button to the superview
- trailing-space constraint on the left-hand button to the right-hand button
- trailing-space constraint on the right-hand button to the superview
- equal-width constraint on the buttons
I get misplaced views:
Button 1
Expected: width=161
Actual: width=160
Button 2
Expected: width=161
Actual: width=160
I get the same with the vertical.
Surely, 320 / 2 = 160, right? Can anyone point out what I am doing wrong? Or should I just ignore the warnings?