0

I have implemented JMImageCache for downlaoding images.Its classes have arc enable.

I am downloading images from url and displaying 6 images at a time in a view and on click next button another 6 images are loading in the same view(replacing previous one).

My problem is that on every click of next and previous my memory is increases by 2 MB. Is there any way to avoid it.

I have tried to manually release the objects but still memory is increasing (lesser compare to arc enable).

4

1 回答 1

0

这是由于缓存,以使事情更快。当您收到内存警告时,您需要清除缓存。那就是它。

[[NSURLCache sharedURLCache] removeAllCachedResponses];
于 2013-01-11T09:39:28.153 回答