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

iOS Build a Simple iPhone App with Swift Improving Our User Interface Implementing Auto Layout

Ismael Barry
Ismael Barry
3,328 Points

Fixing the last conflicting constraint (width constraint)

When fixing the last conflicting constraint (width constraint), can't we just click the yellow triangle in the document outline and choose the fix misplacement option. It will give us the same end result. What is the significance of doing it Pasan's way?

1 Answer

Chris Shaw
Chris Shaw
26,676 Points

Hi Ismael,

Either way for this course is fine as both will yield the same result, however. You need to be careful when using Xcode to manage your constraints automatically as sometimes it makes assumptions and and isn't correct especially wen it comes to aligning labels outside of the snapping guides.

Personally I prefer to use the warnings as a guide and set the constraints along side it which makes it easier to deal with.

Ismael Barry
Ismael Barry
3,328 Points

Gotcha. after practicing around a bit, I see what you are referring to. Thanks a lot for the quick response. Really appreciate it!