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

3/3 Final Blog Reader Challenge, Why Doesn't This Work?

Why is this code coming off as wrong?

UIWebView *webView = [[UIWebView alloc] init];
/* Write your code below this line */

NSURL *url = [NSURL URLWithString:@"http://teamtreehouse.com/"];
NSURL *urlRequest = [NSURLRequest requestWithURL:url];
[webView loadRequest:urlRequest];

I've also tried:

[self.webView loadRequest:urlRequest];

Any idea?

1 Answer

NSURL *urlRequest = [NSURLRequest requestWithURL:url];

looks like you used the wrong class name, im guessing it should be

NSURLRequest *urlRequest  

not

 NSURL *urlRequest 

That's weird if that's the case, I'll check it now. I got the second answer correct with that.