Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Darcy Phillips
4,087 PointsUIButton: X position value 20 points different than X constraint value?
I noticed from his video that the x coordinate in the attributes inspector seems to use a different margin for reference than the constraints points. That is, when the left constraint of the button is set at 20 points from the left side, the x coordinate in the attributes inspector says it's 40 points from the left side.
That's a bit confusing for a beginner! Took me a while to figure out why one said 40 and one said 20 yet they both seemed to be referring to the same value of x. Can't find anything on google about it- is it just because the auto layout system has a different reference margin? Or I've missed something somewhere.... thanks!