in iphone i have requirement of store image in cache .
but how i can store this in cache.
I know the folder path of cache. is this only way i have to WRITE my image in that folder for cache?
I want to know any other way. or is this correct way? Please help me.
use this link..
http://www.makebetterthings.com/iphone/image-caching-in-iphone-sdk/
edited:
get file path using this code and fatch the particular file :
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES);
NSString *libraryDirectory = [paths objectAtIndex:0];