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.
You can store data on local disk using
NSArchiver
andNSUnarchiver
in this way:// set your image in cache
//get your image from cache
Reference apple here: http://goo.gl/XH2o2
hope this helps.
use this link..
edited:
get file path using this code and fatch the particular file :