Evgeniy Kleban Evgeniy Kleban - 1 month ago 19
iOS Question

Auto Layout extra spacing

I set my UI elements with offsets 0(left), 0(right). However, there are extra spacing on this sides. Please take a look at screen:

enter image description here

How to fix that?

Answer

You'll want to make sure you don't have Constrain to Margins ticked when you set your constraint.

I've attached a screen shot.

enter image description here