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

Problem with getting background image to fill full screen when adapting for different size screens

I have just got through the auto layout video tutorial in the iphone app crystal ball course. I am working with Xcode 6 but video is showing an older version of Xcode. It seems to have thrown up a couple of problems as I had difficulty following the tutorial exactly due to different versions :/

The overall aim was to get background image, button and label to all move fluidly and keep respective position on screen regardless of screen size, and I did achieve this much for both iphone 4s and iphone 5.

But sadly I did something wrong and the background image does not entirely fill the screen in the iphone 4s rendering once run. I have a margin gap ie a white space on the left and right margins (width).

How can I fix this? Thanks!

1 Answer

Worked it out in the end, but disappointed there isn't a bit more help available in this forum if I'm honest. Kudos to Amit for a great course but a bit of support here would be helpful.