I am allocating and initializing the UIWebView in the viewDidLoad and I am loading the webview in the viewDidAppear.
So i want to clear the contents the UIWebView once its loaded by clicking a button.
I am allocating and initializing the UIWebView in the viewDidLoad and I am loading the webview in the viewDidAppear.
So i want to clear the contents the UIWebView once its loaded by clicking a button.
[_webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"about:blank"]]];
Load the blank on button click.