iOS5数据存储问题。在哪里保存文件? [英] iOS5 data storage issue. Where to save files?

查看:108
本文介绍了iOS5数据存储问题。在哪里保存文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我读过这些:

(1) http://www.gaiagps.com/news/article/iOS5%20Breaks%20Data%20Storage%20and%20Crushes%20My%20Soul

(2) http:/ /iphoneincubator.com/blog/data-management/local-file-storage-in-ios-5

(我不能提交两个以上的超链接因为我是菜鸟。)

(I can not submit more than two hyperlinks because I'm a noob.)

以及apple.com中所有相关的开发者论坛主题。

and all the related developer forum threads in apple.com.

问题:使用新的iOS5,我们需要将文件保存到/ Caches文件夹,并且只将用户生成的文件保存到/ Documents文件夹。即使我们的应用程序未运行,应用程序更新或系统还原,也可能会意外删除缓存文件夹。在意想不到的时间删除是令我们担心的。

Problem: with the new iOS5, we need to save files to /Caches folder, and save only user generated files to the /Documents folder. And caches folder may be deleted unexpectedly even when our app is not running, on app updates or system restores. The deletion at an unexpected time is the one that worries us.

我仍在提出有关同一问题的问题的原因是要问;

The reason I am still opening a question about the same issue is to ask;

1 。如果我错过任何东西。好像有关于这个问题的更新,我是唯一一个没有听到它的人。来自第一个链接(gaiagps)的人抱怨他们的应用程序被拒绝等等,但是他的以下博客文章告诉他们的应用程序数据现在可以安全删除。

1. If I am missing anything. As if there's an update on this issue and I am the only one that didn't hear it. The guy from the first link (gaiagps) is complaining about having their app rejected and so, but his following blog post is telling their app data is now safe from deletion.

2 。是否可以将我的数据保存到/ Documents(即使它们很大 - 破坏iCloud用户体验),使用新组件UIDocument并将其与iCloud存储同步?

2. Is it okay to save my data to /Documents (even if they're big -to ruin the iCloud user experience-), using the new component UIDocument and syncing it with iCloud storage?

我想正确地开发应用程序,以便在我第一次提交应用程序时(如果可能的话)通过应用程序审核接受,以避免任何延迟。所以我要问的是,在iPad中保存数据的位置不会被删除?

I would like to develop the app correctly to get accepted by the app review the first time I submit the app (if possible), to avoid any latencies. So what I am asking is, where to save the data in iPad so it won't get deleted?

推荐答案

Apple修复了这个问题在iOS 5.01测试版中。

Apple has fixed this issue in iOS 5.01 beta.

在这里查看我的博客文章:

See my blog post here:

http://www.gaiagps.com/ news / article / Apple%20Fixes%20Issue%20that%20Affected%20Offline%20Mapping%20Apps%20in%20iOS%205.0

这篇关于iOS5数据存储问题。在哪里保存文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆