I have an UIImage
in the Documents directory.
I would like to load it and cache it in the memory.
To create and cache a UIImage, we should use + (UIImage *)imageNamed:(NSString *)name
method, but the problem with this methods is that the image should be in the application bundle. When i use the other methods, initWithContentsOfFile
, ... the image is not cached.
How to load an UIImage
from the documents directory and cache it ?
imageNamed:
. – rmaddy