-(NSString *)filePath
{
NSString *docPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDirectory, YES)objectAtIndex:0];
NSString *path = [docPath stringByAppendingPathComponent:@"texts"];
// NSString *path = [NSHomeDirectory() stringByAppendingPathComponent:@"Library/Caches/texts"]; //两种方法都可以
return path;
}
时间: 2024-10-12 06:14:25