I made app and use plist to save data, but I can"t find it. I defined it as below:
and use it like this:
But it is very strange because I couldn't find that plist file, even in ~home/Library/Application Support/iPhone Simulator/, where can I find it?
Code:
#define kFilename @"trade.plist"
and use it like this:
Code:
-(NSString *) dataFilePath {
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
return [documentsDirectory stringByAppendingPathComponent:kFilename];
}
...
[array writeToFile:[self dataFilePath] atomically:YES];
But it is very strange because I couldn't find that plist file, even in ~home/Library/Application Support/iPhone Simulator/, where can I find it?