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 Introduction to Auto Layout in iOS Auto Layout in Code Blues and Purples

Toby Morgan
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Toby Morgan
iOS Development Techdegree Graduate 23,133 Points

Equal width constraint: order does matter?

In the NSLayoutConstraint: Blues and Purples video, Pasan mentions that for the "equal widths constraint" the order of items doesn't matter since the constraint is just making the two views of equal width. Whilst this is true, it is worth pointing out that if your multiplier is not 1.0, but say 0.75 to make it a proportional relationship, then the order does matter since the first view's width in this case would be equal to 0.75*the width of the second view.