[Solved] NSLayoutConstraint equal height does not divide equally


You have some options.

  1. Resize the content of the scroll views to be 208px and ignore the left-over partial pixel.
  2. Disable scroll bars on the scroll views if you don’t need them.
  3. Add a pixel to one of the other areas so that the red and green views can be equal heights.
  4. Size the views to the exact pixel dimension you want rather than just an “equal height” constraint.

1

solved NSLayoutConstraint equal height does not divide equally