For the More Curious: iCloud Backups

Although not an explicit feature of iCloud, iOS supports backing up the contents of a device in the cloud. Part of the backup process synchronizes the Documents and Library/Preferences directories of each application sandbox. This is pretty neat, but you can’t go hog wild. This ability to back up data in Documents/ in the cloud has led to a new requirement for applications: you can’t store too much data in the Documents directory on pain of your application being rejected by the App Store.

Of course, too much data is frustratingly vague, but the general rule is only store in Documents/ what really needs backing up and not what can be recreated. Data that can be recreated should be stored in Library/Caches/ ...

Get iOS Programming: The Big Nerd Ranch Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.