寻找沙箱的Documents文件夹路径
// 寻找沙箱的Documents文件夹路径
- (NSString *) dataFilePath {
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
return [documentsDirectory stringByAppendingPathComponent:@"test.txt"];
}
NSString * path = [self dataFilePath];