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 Enhance a Weather App with Table Views Upgrading Stormy Custom Background Views

Wrong constrain ?

Hi,

Is the constraint bellow really correct ?

Location Label: Vertical Center in Container with constant of -42

It was not working. The location label was cropped in top of screen. Then I changed the constant value to 46 and it worked well for all iphone screen sizes.

Regards,

Nathan Bills
Nathan Bills
5,449 Points

I had the exact same problem. I changed my Vertical Center in Container with constant of 42. I too would like to know if -42 was just a typo or if we're doing something else wrong.

Rick Heffren
Rick Heffren
4,312 Points

Yep, I think it must be a typo

2 Answers

Ian Donovan
Ian Donovan
3,166 Points

Gotta be a typo.

I noticed this in the last Weather app as well, I needed a -65 where he entered 65. It's as if the coordinate system is reversed.