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

Making the background image work

I'm working on the designs tutorial for the message app now. The instructor took a second to figure out how to get the background image to show. I followed him step by step and added the loginBackround to retina and moved it to the 1x 2x and R4. It worked for him in his video but still isn't showing me the background image.

Any ideas on how I can make it show? I did deselect auto layout.

2 Answers

I did this last night actually. When you add the imageview to the view controller. Make sure you move the view to the top of the list on the storyboards's left hand column of the loginViewcontroller.

After doing this, you have to specify what image you would like as the background. This is done by selecting the image in the attribute inspector. Make sure the image is added to the xcasset so that it can be selected.

I hope this gives you some direction. Try to narrow down what the specific issue is and repost if necessary. There are many steps to adding a background image.

I did this last night actually. When you add the imageview to the view controller. Make sure you move the view to the top of the list on the storyboards's left hand column of the loginViewcontroller.

After doing this, you have to specify what image you would like as the background. This is done by selecting the image in the attribute inspector. Make sure the image is added to the xcasset so that it can be selected.

I hope this gives you some direction. Try to narrow down what the specific issue is and repost if necessary. There are many steps to adding a background image.