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

To get the same fun fact position, I must enter the opposite values shown in Pasan's video.

Following the video about auto-layout, I've done the same the steps on my xcode to see what happens. If I don't change anything, the fun fact gets displayed under the button and not slightly above as shown in the course video. I've noted that when I press "Ctrl" and drag to click on "Center vertically in the container", it creates a third label in constraints on the right menu but no values are set. When Pasan does it, a value of 73,5 is set automatically, pushing the fun fact just a little bit above the button. To get the same result on the scheme, I must enter a negative value to display upwards the fun fact. The most interesting fact is if I enter "-73,5" as constant when I edit the "Align center Y to: Superview" constraint, I get the exact same display shown in Pasan's video! All my constraints are trailed or aligned to superview and I have also have one warning saying that "Frame for "FunFactLabel" will be different at run time". Does anyone can explain me what's happening underneath the hood? It's very frustrating to see no questions related to this course are being answered so far...Thanks for your help!