Burjua
Burjua

Reputation: 12706

release contents of UIWebView

I have a ViewController and UIWebView created in Interface Builder in it. I fill webView with data like this:

 NSString *urlAddress = self.artUrl;

 //Create a URL object.
 NSURL *url = [NSURL URLWithString:urlAddress];

 //URL Requst Object
 NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];

 //Load the request in the UIWebView.
 [self.webView loadRequest:requestObj];

How should I release content of this webView in didReceiveMemoryWarning?

Thanks

Upvotes: 0

Views: 1083

Answers (1)

Eiko
Eiko

Reputation: 25632

You either release the whole web view (if it is off-screen for example), or nothing at all. If you really need to release the contents, load a blank page.

Upvotes: 1

Related Questions