e2e4media
e2e4media

Reputation: 51

Xcode memory increase with UIWebView

enter image description here

I create a UIWebView thats content a image of a board, when the users change de View and came back again the memory increase, and again and again I try with [[NSURLCache sharedURLCache] removeAllCachedResponses]; but no resolve the problem I put

IBOutlet  UIWebView __weak *tablero;
@property (weak, nonatomic) IBOutlet UIWebView *tablero;

in the .h file

I desperate for that.

How I clean the memory?

Upvotes: 0

Views: 311

Answers (1)

Pradumna Patil
Pradumna Patil

Reputation: 2220

When you are creating request for your webview use

NSURLRequest* request = [NSURLRequest requestWithURL:fileURL cachePolicy:NSURLRequestReloadIgnoringLocalCacheData timeoutInterval:60.0];

NSURLRequestReloadIgnoringLocalCacheData 

So it doesn't save cache data.

Hope it helps.

Upvotes: 1

Related Questions