I'm trying to store something in my Caches folder on my iPad app.
NSArray* cachePathArray = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
NSString* cachePath = [cachePathArray lastObject];
And when I print out the returned filepath, I get:
/Users/Gela/Library/Application Support/iPhone Simulator/5.0/Applications/3FF7EB1A-49A9-4B13-ADC4-DF0662BA724B/Library/Caches
However, when I navigate to that folder on my hard drive, "Caches" is not a folder but a vague "document" file.
Any ideas why it's not a folder and how I can write to my Cache?
Maybe
Simulator
does not haveCaches
dir. You try this on device...You can access the
Caches
directory like this. I use this method for getting file data...