gpt4 book ai didi

iPhone文档目录和UIFileSharingEnabled,隐藏某些文档

转载 作者:行者123 更新时间:2023-12-03 18:50:37 26 4
gpt4 key购买 nike

我希望用户能够访问文档目录中的文件,但正在使用核心数据,并且不希望用户能够访问存储(sqllite 数据库),我可以同时向用户隐藏它吗允许文件共享,或者我可以将其放在另一个仍然可以备份的目录中吗?

最佳答案

FrenchKiss Dev给出的答案不正确。用户仍然可以在 iTunes 中看到“.data”目录,并将其及其内的所有文件保存在本地。

相反,将私有(private)文档存储在库/首选项

According to Apple :

In addition to the directories documented previously, the entire /Library directory has always been preserved during updates and backups, except for /Library/Caches. Because of this, applications can create their own directories in /Library/ and those directories will be preserved in backups and across updates. To minimize the risk of name collisions, we recommend that you name this directory carefully. For example, a directory named Private Documents would be a good choice. You should store any files you don't want to share to Library/Preferences.

关于iPhone文档目录和UIFileSharingEnabled,隐藏某些文档,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2942855/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com