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 trialLeonardo Santos
5,290 PointsWrong 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,
Rick Heffren
4,312 PointsYep, I think it must be a typo
2 Answers
Ian Donovan
3,166 PointsGotta be a typo.
Roger Gonzalez
1,553 PointsI 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.
Nathan Bills
5,449 PointsNathan Bills
5,449 PointsI 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.