IOS5 data storage problem. Where to save files?

First, I read:

(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 cannot submit more than two hyperlinks because I am noob.)

and all related topics from the apple.com developer forum.

Problem : with the new iOS5, we need to save the files in the / Caches folder and save only user-created files in the / Documents folder. The cache folder may be deleted unexpectedly, even if our application is not running, updating the application or restoring the system. What bothers us is the removal that bothers us.

The reason I still open the question about the same problem is to ask:

1 . If I missed something. As if there is an update on this issue, and I'm the only one who has not heard this. The guy from the first link (gaiagps) complains that their application is rejected and therefore, but his next blog post says that the application data is now safe from deletion.

2 . Is it possible to save my data in / Documents (even if they are large - destroy the iCloud user interface) using the new UIDocument component and synchronizing it with iCloud storage?

I would like to properly develop the application in order to get the approval of the application for the first time when I submit the application (if possible) to avoid any delays. So I ask, where to save data on the iPad so that it does not delete?

+7
source share
4 answers
+2
source

There are a few key points here ...

  • The document catalog is for files that cannot be easily recreated or downloaded. For example, if an application downloads some common files to a user device, this should not go to the document directory, since it is not very user-specific and can be easily downloaded.

  • Elements created specifically for the user and which may be difficult to recreate should be stored in a document folder, such as a PDF, which is created by user input or editing.

  • Any files in the document directory will be included in the backups, whether in iTunes or iCloud, so storing too large files in the document directory can lead to a violation of your users.

+2
source

You must save only user-created documents in the Documents folder. Data generated by applications typically goes into a subdirectory of the library directory or tmp for short data.

If you need to make sure that your user-created data has not been automatically cleared, you can use the Application Support directory.

A provided a more detailed answer to a similar question here .

+1
source

I had the same problem with my application and Apple rejected my application because I stored my data in the / Document directory;

Here are my findings that I recorded on the blog; http://aasims.wordpress.com/2012/02/02/storage-issue-with-ios-5-and-icloud/

+1
source

All Articles