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 trialHarris Ryder
1,333 Pointsanchors, what are they?
what are anchors, they are used in the video to constrain an image view to the viewcontrollers view right?
I have completed the auto layout course and I have never come across them before what are they, what do they represent visually?
and what visually is he constraining the image view to?
Thanks!
1 Answer
Mitch Little
11,870 PointsHi Harris,
Anchors represent a particular attribute of a view and allow the adjustment of constraints in code.
Anchors are actually covered in the Beginner iOS Track under Introduction to Auto Layout in iOS. See Auto Layout in Code < Layout Anchors.
I hope this clears things up,
Mitch