libres icon indicating copy to clipboard operation
libres copied to clipboard

UIImage cache

Open vvvladvvvolkovvvskiy opened this issue 1 year ago • 5 comments

UIImage.imageNamed cached. When use a lot of images, cache eating a lot of ram

Apple says : If you intend to display an image only once and don't want it added to the system’s cache, create it using the [imageWithContentsOfFile:]

Ideal have option, that indicate reusage images Don't know how fix.

  1. Clear cache at private access.
  2. Maybe don't need to have val(use function) and gc clear it(need to test)
  3. Or provide something like url(if possible)

Sorry, i'm android developer and don't have a lot of expirience to help with ios

vvvladvvvolkovvvskiy avatar Apr 14 '23 20:04 vvvladvvvolkovvvskiy