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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Disk Utility: Creating a Boot Flash drive results in Error ohla313 Mac OS X 10.7 Lion 0 Oct 9, 2011 09:50 PM
Question regarding WebView component in Mac Web Browser gwelmarten Mac Programming 4 Feb 21, 2011 05:05 PM
Question regarding WebView component in Mac Web Browser gwelmarten Mac Programming 0 Feb 15, 2011 11:59 AM
Need help- Getting error when attempting to import photos (iPhoto09) results in error LuvMyMac2 Mac Applications and Mac App Store 2 Feb 23, 2009 09:35 AM
Custom Icon for World of Warcraft results in error? munson Mac Applications and Mac App Store 2 Feb 16, 2009 02:34 PM


All times are GMT -5. The time now is 02:24 AM.

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

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