//获取沙盒地址
NSArray *pathArr=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *str=pathArr[0];
//创建文件的地址
NSString *path=[str stringByAppendingPathComponent:@"image.pdf"];
NSLog(@"%@",path);
//获取沙盒地址
NSArray *pathArr=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *str=pathArr[0];
//创建文件的地址
NSString *path=[str stringByAppendingPathComponent:@"image.pdf"];
NSLog(@"%@",path);
本文标题:沙盒问题
本文链接:https://www.haomeiwen.com/subject/xwiayttx.html
网友评论