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

Build A Simple iPhone App - Stage 4 Background Issue

I replaced the background image with the one that says "Shake For Prediction" but it still shows the old background. I deleted the old background and added/copied over the new background images (copied to destination).

It's probably very simple but I'm not seeing it now. Any help would be great :)

10 Answers

Alex Hedley
Alex Hedley
16,381 Points

Did you set it IB and try a clean build?

Jason,

Your issue could stem from a number of sources. Is there any way you could upload your Xcode project to Dropbox? I wouldn't mind checking it out to see if I can help you hunt down the culprit.

Best,

J.T.

I just looked again and the build is working but there actually 2 builds when I hit run. Anyone ideas why that's happening?

Hmmm... Do you have another project running? ...or another instance of Xcode running somewhere?

Which builds are running? Does Xcode tell you which projects are compiling?

It doesn't. I'm not going to worry about it now. As long as there are no bugs then it should be okay.

Were you able to get the right UIImage to display, or are you still having issues?

I had this problem, i think someone else had it to and Amit Answered, with mine it was because there is still the old image in the storyboard, so if you delete that then it runs ok :)

How do I find the old image in the storyboard? I don't see the old backgrounds in the media library when I click "MainStoryboard.storyboard."

Would it be something I need to change in the ViewController.m?

Hi Jason

I was having the same issue - found this post which has a solution

http://teamtreehouse.com/forum/1st-crystal-ball-image-still-getting-called

It seems xcode retains a cache of the resources used in a project so you have to clean it out: Product -> Clean

Russell

Thanks! It worked.