Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

iOS

Still No Background (I have project image links)

Still can not figure out why my background image is not showing but I followed what the instructor was doing completely. Any ideas guys?

Here are some picture links:

http://tinypic.com/r/14dgjvd/8

http://tinypic.com/r/29xeu0x/8

2 Answers

Vikram,

So the image shows in the storyboard, but not when you run the app, correct? You checked The that the Image property of the Image View is set to loginBackground and you confirmed that the viewDidLoad method is correctly loading the image named @"loginBackground-568h" based on the bounds height? Is it only the login screen that is not loading, or is the signup screen not loading the image as well?

Add loginBackground-568h@2x.png in your Xcode Project Navigator. You can put it on a separate Images folder. I think it's a case of Xcode not looking at Images.xcassets. Got the idea from Stone Preston here: https://teamtreehouse.com/forum/retina-background-image-not-being-displayed