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
Zachary Dalzell
3,236 Points3/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
Stone Preston
42,016 PointsNSURL *urlRequest = [NSURLRequest requestWithURL:url];
looks like you used the wrong class name, im guessing it should be
NSURLRequest *urlRequest
not
NSURL *urlRequest
Zachary Dalzell
3,236 PointsZachary Dalzell
3,236 PointsThat's weird if that's the case, I'll check it now. I got the second answer correct with that.