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

why is challenge 2 not accepting my answer?

I keep getting a 'data is not defined message' after submitting multiple variants of the following:

NSData *data = [NSData dataWithContentsOfURL:url];

'data' is defined. 'url' is defined, and the code inbetween is sound, so wtf? I've completed the blog reader and everything leading up to it with no problems, except for this one challenge.

thanks fellas

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

NSData *data = [NSData dataWithContentsOfURL:url];