Hello,
I currently have a webView (UIWebView) working on FirstViewController. I am opening another window called SecondView controller and based on the user's selection, I want the webView controller on (FirstViewController) to navigate to that webpage. I know that I must access the instance of FirstViewController when I am trying to do this, but I am not sure how to do that without reinitalizing the controller. Here is my sample code:
NSString *theForm = [myLink objectAtIndex:myRow];
FirstViewController *myFirstViewController = [FirstViewController alloc];
[myFirstViewController.webView loadHTMLString:theForm baseURL:nil];
This does nothing and generates no errors. Any ideas would be helpful.
FM
I currently have a webView (UIWebView) working on FirstViewController. I am opening another window called SecondView controller and based on the user's selection, I want the webView controller on (FirstViewController) to navigate to that webpage. I know that I must access the instance of FirstViewController when I am trying to do this, but I am not sure how to do that without reinitalizing the controller. Here is my sample code:
NSString *theForm = [myLink objectAtIndex:myRow];
FirstViewController *myFirstViewController = [FirstViewController alloc];
[myFirstViewController.webView loadHTMLString:theForm baseURL:nil];
This does nothing and generates no errors. Any ideas would be helpful.
FM