I want to reload a UIWebView
(including all labels and images) when a button is tapped. How can I do that?
Note that if you load the content of your UIWebView
using loadHTMLString:
then you'll need to call loadHTMLString:
again to reload it. In this case the reload
method doesn't work.
- (void)viewDidAppear:(BOOL)animated{
[super viewDidAppear:animated];
[webView reload];
}
or
NSURL *theURL = [NSURL URLWithString:@"http://www.OurLovingMother.org/Mobile.aspx"];
[webView loadRequest:[NSURLRequest requestWithURL:theURL]];
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With