I have two buttons which should take up half the width of the view, each.
I have:
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?
Misplaced views really seem to be more suggestions than requirements. Unless constraints are breaking, you probably have nothing to worry about.
If you want the warning to go away, try selecting "Update Constraints", as maybe they are missing an extra pixel in their addition to fill the screen.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With