Closed mcodo closed 11 years ago
I'd try calling loadRequest:
on the UIWebView with the desired URL in viewWillAppear of the view controller.
Thanks dude :) That worked like a charm. Ended up with this:
- (void) viewDidAppear:(BOOL)animated {
GHAppDelegate *appDelegate = (GHAppDelegate *) [[UIApplication sharedApplication] delegate];
NSURL *url=[NSURL URLWithString:[NSString stringWithFormat:@"%@/mobileV2%@",appDelegate.baseURL,InnURL]];
NSURLRequest *nsrequest=[NSURLRequest requestWithURL:url];
[webview loadRequest:nsrequest];
}
Hi In my app Im using the sidebar menu to open a viewcontroller with a webview. I'm passing the URL on click. But if i follow a link inside the webview, and then click on a menuline in the sidebar, it just opens the same (last) page in the webview.... How can I force the webview back to the original URL when clicking the sidebar? Or just reload the viewcontroller?