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

8. Using Key-Value Coding (KVC)

With this chapter, you write your first iCloud apps. You’ve used iCloud data in apps from Part II of this book, but iCloud stayed in the background there. Now, it’s time to work directly with iCloud. Not only do you work directly with iCloud, but you do it twice: once on iOS and once on Mac OS X. This is your first pair of Round Trip apps.

There are two types of storage in iCloud: document storage and key-value (KVC) storage. KVC is the simpler of the two, and it is used in many, if not all, apps. (Apple recommends that it be enabled in all apps submitted to the App Store.)

KVC uses simple data types such as numbers, strings, dates, and so forth. It is limited to 1 MB per app on a user’s device. It is best suited ...

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