Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IPHONE: releasing cached data

Here is a fast one: is there any method for releasing any cached data an application may be using and freeing memory?

I mean data that is cached automatically by the iPhone when you do a Page Curl or other effect in a view, when you load a picture, etc.

The allocations I did I can, obviously release but what about the allocations done by the system itself automatically? Any way to release them?

thanks for any help.

like image 489
Duck Avatar asked Dec 30 '25 02:12

Duck


1 Answers

No. The system will take care of releasing the objects when it is finished with them, and over-releasing the objects will only cause problems.

For the caches that the system keeps (such as the tabs in Safari), the system will release those automatically when it sends your application the low memory warnings.

There’s nothing you can do about the objects that you don’t allocate yourself.

like image 83
Chasen Le Hara Avatar answered Dec 31 '25 16:12

Chasen Le Hara



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!