Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jul 23, 2010, 09:14 PM   #1
Danneman101
macrumors 6502
 
Join Date: Aug 2008
Loading webview results in error

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?
Danneman101 is offline   0 Reply With Quote
Old Jul 23, 2010, 10:21 PM   #2
dejo
Moderator
 
dejo's Avatar
 
Join Date: Sep 2004
Location: The Centennial State
DetailViewController is probably your class name and not your instance name.
__________________
dejo is offline   0 Reply With Quote
Old Jul 24, 2010, 06:57 AM   #3
Danneman101
Thread Starter
macrumors 6502
 
Join Date: Aug 2008
Indeed you are correct :P

Thanks, this was really driving me crazy - hate when you go blind to a letter
Danneman101 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
iPhone: [Help] Winterboard error "There was an error loading the preference bundle for winter becast Jailbreaks and iOS Hacks 10 Feb 28, 2014 09:58 PM
Sending Photo from Camera Roll Always Results in Error rf61985 iOS 6 23 Dec 9, 2013 09:22 PM
how to get notified when webview finished loading DavidBlack Mac Programming 4 Jun 28, 2013 03:07 PM
Error Loading Thethuthinang Mac Programming 7 Feb 26, 2013 09:52 PM
Error Loading This Content on ATV2 LaWally Apple TV and Home Theater 0 Jun 8, 2012 06:37 PM

Forum Jump

All times are GMT -5. The time now is 09:28 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC