Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

iOS Build a Blog Reader iPhone App Adapting Data for Display Downloading and Displaying an Image

Bob Thomson
Bob Thomson
28,625 Points

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.

images.m
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!