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
  • 18,332
  • 22
  • 104
  • 165

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
  • 18,332
  • 22
  • 104
  • 165