iOS 5 does not allow to store downloaded data in Documents directory?

Here are the trade-offs:

  • If you put your files in the Documents directory then they are backed up to iTunes or iCloud but if they are too big and it’s possible to download the files again then Apple may reject your app
  • If you 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.

However, with iOS 5.0.1 there is a third option:

  • Put files in Documents but flag them so that they are not backed up. There’s a technote (QA1719) on how to do this.

I think this is probably the best answer for you.

Leave a Comment