I am very new to the whole programming business, and was wondering if there is any way to clear the contents of a UIWebView
in iphone programming, so that the loading symbol for the next view is not showing up in front of the last view. Many Thanks, Thomas
To clear old contents of webview With UIWebView you would use UIWebViewDelegate 's - webViewDidFinishLoad: .
A view that embeds web content in your app.
Difference Between UIWebview and WKWebViewUIWebview is a part of UIKit, so it is available to your apps as standard. You don't need to import anything, it will we there by default. But WKWebView is run in a separate process to your app,. You need to import Webkit to use WKWebView in your app.
Try setting the URL to about:blank
and reload the page.
Just load an empty html string into it
[self.webView loadHTMLString:@"" baseURL:nil];
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