9. Using Preferences, Settings, and Keychains with iCloud

Both Cocoa and Cocoa Touch provide a user defaults system that you can use to let users configure their app’s behavior. You may have used it on various projects, but in the era of iCloud, user defaults need a bit more thought. You can easily use iCloud to synchronize defaults across devices, and with that possibility, you now have to think about defaults in a multi-device world. For example, a user might be reading or writing a document that is stored in iCloud. In this case it may be a good idea to keep track of the current location in the document so that when the user picks up another device, reading (or writing or viewing or listening) can continue without interruption.

On the other ...

Get Learning iCloud Data Management: A Hands-On Guide to Structuring Data for iOS and OS X 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.