“历史”该去哪里? iOS应用程序生成的信息如何存储?
我想澄清一下iOS应用程序生成的“历史数据”是否被视为关键数据。
我的应用程序存储“历史数据”,如果需要,无法重新创建/恢复。 该信息存储在 Application_Home/Documents
中。
这会被视为违反 iOS 数据存储指南规则吗?
I would like to clarify whether the "history data" generated by iOS application is considered as Critical Data or not.
My application stores "history data" which can not be recreated/restored if there is need.
That information is stored in the Application_Home/Documents
.
Would this be considered as violation of the iOS Data Storage Guidelines rules?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您希望历史数据与 iCloud 同步,那么
Documents
就是存储它的地方。如果您不希望它同步,最好的位置可能是在应用程序沙箱Library
目录中创建一个子目录。这些目录不会被清除(例如Caches
和tmp
),并且它们不会通过 iCloud 同步进行同步。然而,它们将使用 iTunes 进行备份(也许通过 iCloud 备份,但我不确定)。另请注意,从 iOS 5.0.1 开始,您可以专门排除以下文件阻止将 Documents 文件夹存储在 iCloud 备份中。该方法在iOS上运行没有问题< 5.0.1 也是如此,但不会有任何影响。
If you want the history data to be sync'ed with iCloud, then
Documents
is the place to store it. If you don't want it to be sync'ed, the best place is probably by creating a subdirectory inside your application sandboxLibrary
directory. Those directories will not be purged (likeCaches
andtmp
) and they will not be synchronized via iCloud sync. They will, however, be backed up using iTunes (and maybe via iCloud Backup but I don't know for sure).Also note that starting with iOS 5.0.1, you can specifically exclude files in the Documents folder from being stored in iCloud backup. The method runs without problems on iOS < 5.0.1 as well but won't have any effect there.