Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

iOS Enhance a Weather App with Table Views Custom Table View Cells Creating a Custom Table View Cell

Keli'i Martin
Keli'i Martin
8,227 Points

Constraint constants seem to be inverse in latest Xcode

Maybe it's just me, but every time I add a constraint constant that Pasan gives, my UI elements end up on the wrong part of the UI? For example, the ImageView for the temperature background. Pasan said to center it horizontally with a constant of 88. Doing that places the ImageView towards the left of the cell. When I do it, my ImageView ends up near the right of the cell. This was the case for all the constraints to initially set up the new Weekly view as well.

I am using Xcode 7.2.1 right now. Did something happen between when this video was shot and now that would have flipped the constraint constants in this manner?

Steven Alvarez
Steven Alvarez
5,509 Points

I have the same issue. I attempted going through the steps from scratch multiple times each resulting in elements overlapping or in the exact inverse position of what is shown in the video.

1 Answer

it also happens tome, what i do is first update the constraints in the resolve auto layout issues annd then a update the frames(if necessary)