寻找沙箱的Documents文件夹路径


// 寻找沙箱的Documents文件夹路径

- (NSString *) dataFilePath {

    

    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);

    

    NSString *documentsDirectory = [paths objectAtIndex:0];

    

    return [documentsDirectory stringByAppendingPathComponent:@"test.txt"];

    

}

NSString * path = [self dataFilePath];


posted on 2014-06-16 18:40  金玉游龙  阅读(204)  评论(0编辑  收藏  举报

导航