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

adding pictures on my background storyboard

i just started a new project on Xcode and i added a background uiimage in my storyboard but the problem is that i can't add any pictures over that image

2 Answers

a UIImageView can only display one image at a time. you can add additional imageViews to your storyboard and add your images to those

You could also set the image to the background of the viewcontroller with the following line of code:

[self.view setBackgroundColor:[UIColor colorWithPatternImage: [UIImage imageNamed: @"imagename.png"]]];

Keep in mind this wond show in your storyboard!