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
Interapptive Labs
739 PointsBackground Image Does Not Change
The background image does not change in my iOS project. I followed the instructions in the Intercepting Touch Events video in the Shaking Things Up stage of the Build an iPhone Crystal Ball App project, but when I run the application in the emulator, it shows me the original image for the background. The "Shake for prediction" aspect of the image at the bottom never shows up. However, in Xcode, if I click on the "background.png" file in the Images folder, it shows me the correct image (with the shake for prediction part). I do not even understand how it still has the original image. I have tried quitting the simulator and deleting the application and rebuilding it. Thanks in advance!
5 Answers
Amit Bijlani
Treehouse Guest TeacherTry cleaning your build: Shift + Command + k or from the menu Product > Clean
Also, make sure you don't have two image views defined. There should only be one either in the storyboard or within your code in the viewDidLoad method.
Interapptive Labs
739 PointsCleaning it worked! Thank you so much!
Kelly Cherniwchan
3,331 PointsThanks for asking this....it worked for me too!
John Sanford
4,134 PointsI knew it had to be something like a Clean... I just couldn't find it. Thanks Amit.
Kunal Patel
1,448 PointsI noticed this for me as well. I think the video should have a quick note on the Clean function.