iOS Components and Frameworks: Understanding the Advanced Features of the iOS SDK
by Kyle Richter, Joe Keeley
Key-Value Store Syncing
iCloud also supports key-value store syncing. This is similar to storing information in an NSMutableDictionary or NSUserDefaults, where a key is associated with an object value for storage and retrieval. The difference with the iCloud key-value store is that the keys and values are synced automatically between devices. At the time of this writing, iCloud supports a total of 1MB of usage for the key-value store for an app, and up to 1,024 key-value pairs, so the key-value storage mechanism is appropriate only for small amounts of information.
The sample app utilizes the iCloud key-value store to keep track of the last edited note. The detail view controller will store the name of the last updated note when the configureView ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access