ios - 用户照片库中的图像是否可以从第三方应用程序移动到隐藏文件夹?

标签 ios swift xcode

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.

File system documentation

关于ios - 用户照片库中的图像是否可以从第三方应用程序移动到隐藏文件夹?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52404388/

相关文章:

ios - 在 firebase 测试实验室测试 APNS

ios - 从 Crashlytics 3.0.0 开始,实现用户提示是应用程序的责任

ios - DrawView 崩溃 ios xcode 6

ios - Facebook SDK : UINavigationController has no member 'push'

swift - UITextChecker、Swift 的单词学习——不起作用

ios - UiWebView 上的 Meme 类型错误

xcode - _BSMachError XCode 7 Beta

ios - [NSMutableDictionary dictionaryWithObjectsAndKeys 会导致缓冲区溢出吗?

Xcode 持续集成机器人在 Git 强制推送后失败

iphone - 如何通过从 iPhone 中的 UITapGestureRecognizer 的角落拖动 View 来增加 View 的大小和高度?