1

This is something that always happens, but I never understood.

Why in Interface Builder, if you leading-align a view with the view controller, the margin shows up as -20, instead of 0?

Daniele B
  • 19,801
  • 29
  • 115
  • 173

1 Answers1

0

If you get a negative number, it means the contraint you set has the "relative to margin" option checked.

I found the solution here:

What is "Constrain to margin" in Storyboard in Xcode 6

Community
  • 1
  • 1
Daniele B
  • 19,801
  • 29
  • 115
  • 173