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 Playlist Browser with Swift Refactoring Our Code Adding Multiple Playlists

Ga-eun Kim
Ga-eun Kim
2,558 Points

Same constraints, but different sizing

I followed the exact same steps that Pasan did, but there are still orange and red lines showing up. When I show the assistant editor for the 4.7 inch screen, the images are shifted to the left instead of centered. I have no idea what I did wrong.

2 Answers

I run into similar problems quite often. i think its because you and I alike are using a newer version of X-Code or swift (these videos are outdated) i recommend google and document reference.

Ga-eun Kim
Ga-eun Kim
2,558 Points

Yeah, I eventually used the teacher's version. :( I think I made a fatal mistake when I tried to fix the bug, and did something to the actual structure behind the code.

Thanks for your reply!

If you're having issues with the height and width not being exact.

  1. You can set the height and width for the top left UIImageView only
  2. Control drag the rest of the imageViews to that one
  3. Select equal width and equal heights.