Photos Framework 提供了一个 API 来移动到文件夹。但是,有没有办法将图像的状态更改为隐藏,从而将其移动到 iOS 隐藏文件夹并从主照片库中隐藏它?
最佳答案
如果你想私下保存一些数据,这样其他应用程序就无法访问它,你可能需要将它保存到应用程序数据容器中。例如,这可以是 /Documents
文件夹。查看 FileManager
类来处理文件系统。
Use this directory to store user-generated content. The contents of this directory can be made available to the user through file sharing; therefore, his directory should only contain files that you may wish to expose to the user. The contents of this directory are backed up by iTunes and iCloud.
关于ios - 用户照片库中的图像是否可以从第三方应用程序移动到隐藏文件夹?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52404388/