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 Weather App with Swift Simple Data Structures Playing Around With Size Classes

I am using xcode Version 6.3.2 and when I tried to use wAny and hAny the label dont stay in the center of devices

I am using xcode Version 6.3.2 and when I tried to use wAny and hAny sized in the story board the label dont stay in the center of whatever device I tried to use

Sam Bass
Sam Bass
9,038 Points

If you see the video under "Label" in the "View Controller Scene" when he entered "Main.storyboard" he has "Constraints". To add the "Constraints" click the label in the screen. then click the button on the bottom right that looks like a little bars. When click you will see a menu with options check on "Horizontal Center in Container" also check on "Vertical Center in Container" then click on the button that says "Add Constraints". Now it should center the label in any size screen. Note: make sure the Label is placed in the center of the screen when adding the constrains. (This part is tricky, I got stuck on it too at first lol).

S B
S B
4,497 Points

Thank you!