O'Reilly logo

Learning iCloud Data Management: A Hands-On Guide to Structuring Data for iOS and OS X by Jesse Feiler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required