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
Luke Horton
317 PointsBuild a simple iPhone app quiz - Programming a background image
Not sure what I'm doing wrong on the third task.
It says,
"Add the UIImageView as a subview to the instance of UIView named 'catView'."
My code looks like,
UIView *catView = [[UIView alloc] init];
/* Write your code below this line */
UIImage *image = [UIImage imageNamed:@"lolcat.png"];
UIImageView *imageView = [[UIImageView alloc] initWithImage:image];
[self.catView addSubview:imageView];
also tried the last line as,
[self.view addSubview:imageView];
Thanks
Luke
2 Answers
Ernest Grzybowski
Treehouse Project ReviewerDon't have too much time right now to look into this, but check out:
and
http://teamtreehouse.com/forum/programming-a-background-stuck-on-code-challenge
Rob Allessi
8,600 PointsHi Luke!
Shoot us an email at help@teamtreehouse.com if you're still having trouble with this.