0

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.

Gourav.J
  • 21
  • 3
  • 8

1 Answers1

1
   [_webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"about:blank"]]];

Load the blank on button click.

San007
  • 762
  • 1
  • 9
  • 30