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

simon fraboulet
simon fraboulet
3,405 Points

Build a Simple iPhone App (iOS7) - Magical Ball - Using Auto Layout

Hello everybody,

In the video, after having deleted this code

UIImage *backgroundimage = [UIImage imageNamed:@"background"]; UIImageView *imageview = [[UIImageView alloc] initWithImage:backgroundimage]; [self.view insertSubview:imageview atIndex:0];

an "Image View - background" magically happens in Main.storyboard/ View Controller scene/ View Controller/ View.

This is not the case on my computer, so I don't have any background anymore... : (

Any help?

Thanks, Simon

2 Answers

Stone Preston
Stone Preston
42,016 Points

just drag an image view back on to your storyboard and set its image to be whatever was previously being used as the background image

simon fraboulet
simon fraboulet
3,405 Points

Oh yes! Thank you! I didn't really listen what the teacher was saying, sorry...