标签:
-(NSString *)filePath
{
NSString *docPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDirectory, YES)objectAtIndex:0];
NSString *path = [docPath stringByAppendingPathComponent:@"texts"];
// NSString *path = [NSHomeDirectory() stringByAppendingPathComponent:@"Library/Caches/texts"]; //两种方法都可以
return path;
}
标签:
原文地址:http://www.cnblogs.com/iOS-mt/p/4322825.html