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 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)