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
Frank Ogwaro
Courses Plus Student 7,941 PointsAdapting Our Content moves label off screen?
I'm not sure why this is but I'm following iOS development with Swift and when I use the Pin perimeters just like in the video it moves my label off the screen. I took a screen capture so that you could get a better understanding on whats happening. Here is the link https://www.dropbox.com/s/64fzf7ysb3ab0wd/Adapting%20Our%20Content.mov?dl=0
I fixed it by changing the parameters in the size inspector but i'm not sure if thats the correct way of going about it.
2 Answers
Stone Preston
42,016 Pointsyou need to add x and y constraints as well, not just width and height. continue watching the video, it most likely adds those constraints.
Frank Ogwaro
Courses Plus Student 7,941 PointsFor some reason his x and y values didn't change when he used the pin perimeters where as mine did. I ended up changing them back and it worked out. Thanks for the help really appreciate it. :)