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
Travis Deaton
6,871 PointsI am trying to create an instance of UIImage called 'image' given the name of the image is 'placeholder.png'.
The challenge provides: UITableViewCell *cell = [[UITableViewCell alloc] init];
I have: cell.imageview.image = [UIImage imageNamed:@"placeholder.png"];
Thanks for the help
Stephen Wall
Courses Plus Student 27,294 PointsStephen Wall
Courses Plus Student 27,294 PointsThe first challenge is asking for you to just create an instance of UIImage. So as you have done before:
UIImage *image = [UIImage imageNamed: @"placeholder.png"];
It wants you to break it up into to parts, even though your code was correct.
Then for the second challenge you can use:
cell.imageView.image = image;