增加搜索框,ios图片名重复问题

This commit is contained in:
Caiyanpeng committed 2021-10-18 14:03:26 +08:00
1 parent f731494396
commit b075279a14
7 files changed
+82 -43

No files matched your search

+3 -1
View File
@@ -54,8 +54,10 @@
//图片旋转
image = [self fixOrientation:image];
}
NSUUID *UUID = [NSUUID UUID];
NSString *result =[[UUID UUIDString] stringByAppendingString:@".jpg"];
//获取保存图片的地址
NSString *imagePath = [self GetSavePath:@"Temp.jpg"];
NSString *imagePath = [self GetSavePath:result];
//保存图片到沙盒路径 对应unity中的Application.persistentDataPath 之后我们取图片就需要在这个路径下取 这是一个可读可写的路径
[self SaveFileToDoc:image path:imagePath];
}