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.
Jeremy Frimond14,470 Points
Background Image Not Displaying on Main.Storyboard
Amit Bijlani and fellow tree housers the background image is loaded into my project and works fine when I run the app however the background image does not show up on the Main.storyboard. Any idea what is going on here?
EDIT: I also see your background does not display in your project as well. I feel this can hinder the overall design development of the app. Is there a way to toggle the background image in (when the image is coded in as opposed to using the object library?
Finally, is there a best practice for coding in a background image vs using the drag and drop image object?
Amit BijlaniTreehouse Guest Teacher
As explained in the course you can display an image using the Storyboard or you can do it in your code. It's your personal preference how you want to do it. There is no right or wrong just what works best with the kind of app you are building. We have a good discussion in another forum post titled Storyboards vs Code.
I'm not sure what issue you are having. Are you saying you've added an image view to your storyboard and it is not displaying?