Search code examples
iphoneipadappstore-approvaldata-storage

iPhone:Where to save the users data when icloud back up is not required


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.


Solution

  • You have two main options:

    • Put your files in the Cache directory then they won't be backed up and Apple won't reject your app. However, when iOS 5 gets low on space it may delete all the files in there
    • Put files in Documents but flag them so that they are not backed up. There's a technote (QA1719) on how to do this. This only works in iOS 5.0.1 and later