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 Blog Reader iPhone App Adapting Data for Display Downloading and Displaying an Image

Whenever I try to complete Objective 2 of this task I always see "Looks like you have not defined 'data'". Why is this?

My sample code is attached and runs correctly in XCode.

NSURL *url = [NSURL URLWithString:@"http://teamtreehouse.com/assets/homepage/logo.png"];

NSData *data = [NSData dataWithContentsOfURL:url];

I've googled it and it appears many students are stuck on it. Lets ask Amit Bijlani and Pasan Premaratne!

5 Answers

i'm locked out of the next section of the obj c tract until they fix this. it's a bit irritating!

I don't think the quizzes prevent you from moving on.

within the course, yes. but the next course is locked until i complete all elements of the 'Build a Blog Reader iPhone App' course, including quizzes.

Your Answer looks correct. I have reported this to the Treehouse support team.

it's fixed


Treehouse updated the Quiz!