iPhone:不需要icloud备份时保存用户数据的位置
您好,我即将向 App store 提交我的应用程序。我读到,随着 iCloud 存储的引入,苹果数据存储指南几乎没有变化。我将所有用户的数据保存在应用程序文档目录中,因为文档目录的内容会自动备份到iCould,如果启用,我正在考虑将它们移动到应用程序库目录。考虑到苹果的数据存储指南,是否批准将内容保存到库中?如果不批准在哪里保存数据?请帮忙。
Hi i am about to submit my application to App store.I read that there are few changes in apples data storage guidelines as iCloud storage is introduced.i was saving all user's data in applications documents directory since the contents of the documents directory are automatically backed up to the iCould,if enabled,i am thinking to move them to applications Library directory.Is it approved to save contents in to library considering data storage guidelines of apple?If not where to save the data? Please help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您有两个主要选择:
You have two main options:
您可以将数据放入文档文件夹中,但在保留文档文件夹之前,请在文档文件夹中创建一个文件夹(假设为 temp)。然后编写以下代码以不在iCloud中进行备份。
还实现方法 addSkipBackupAttributeToItemAtURL
不要忘记包括
You can put data in Documents folder but before keep in documents folder create a folder within Documents folder suppose namely temp. Then write the following code to not backup in iCloud.
Also implement the method addSkipBackupAttributeToItemAtURL
do not forget to include