libres
libres copied to clipboard
UIImage cache
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.
- Clear cache at private access.
- Maybe don't need to have val(use function) and gc clear it(need to test)
- Or provide something like url(if possible)
Sorry, i'm android developer and don't have a lot of expirience to help with ios