Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Danneman101

macrumors 6502
Original poster
Aug 14, 2008
361
1
Im trying to load a webview into the detailview of a split-view ipad-app.

Problem is, no matter if I try loading it with a local html-file or an external one using a url, I get the same error:

Expected ':' before '.' token

Code:
		 NSString *urlAddress = @"http://www.google.com";
		 NSURL *url = [NSURL URLWithString:urlAddress];
		 NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
		 [DetailViewController.webView loadRequest:requestObj];	// This line gives the error

Its driving me nuts, since Im using the exact same code to load a webview in an iphone-app.

Any ideas?
 
Indeed you are correct :p

Thanks, this was really driving me crazy - hate when you go blind to a letter :)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.