Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
xcode 9.2 ; 迅速 4
我想以属性列表的形式为我的 ios 应用程序保留一些数据。我不想使用沙箱的 Documents 目录,因为用户可以操纵它。我有两个选择:库目录和 applicationSupport 目录。使用其中一个有优势吗?提前致谢
我有两个选择:库目录和 applicationSupport 目录。使用其中一个有优势吗?
是的,Apple 建议您使用Application Support。
尽管沙盒应用程序有自己的私有小文件系统层次结构,但您仍然需要遵循指南,就好像沙盒不存在一样。
请记住,无论您将数据存储在何处,“用户都可以对其进行操作”,将其隐藏在沙箱中并不能阻止这一点。
高温高压