我正在开发一个适用于iPad的AIR应用程序,我发现当我卸载应用程序时,文档目录数据会被删除,即使我删除了应用程序或者此行为受到iOS,我无能为力吗?。
感谢。
答案 0 :(得分:3)
不,你不能
For security reasons, iOS places each app (including its preferences and data) in a sandbox at install time. A sandbox is a set of fine-grained controls that limit the app’s access to files, preferences, network resources, hardware, and so on. As part of the sandboxing process, the system installs each app in its own sandbox directory, which acts as the home for the app and its data.
因此,删除应用程序后,有关该特定应用程序的所有内容都将被删除。
答案 1 :(得分:2)
尽快卸载应用程序,文档目录文件夹也会被删除。虽然您无法从其他应用程序访问该文件夹,因此无需保留该文件夹。