views:

36

answers:

1

Hi,

I'm building an iPhone app, and am just wondering what's the best way to "send" data from one view to another? For example, if I have a UITableView full of information (table.data), and when pressed I show a "detail view" and want to give the user the option to open up a URL shown in the "detail view" in an in-app web browser, how do I "push" the URL into the browser view?

Thanks.

A: 
[[[MyWebViewController alloc] initWithURL:url] autorelease]
tc.
Using that, what would you have as the viewDidLoad code? I currently have: NSString *urlAddress = [incident link]; NSURL *url = [NSURL URLWithString:urlAddress]; NSURLRequest *requestObj = [NSURLRequest requestWithURL:url]; [webView loadRequest:requestObj];
Graeme