Cloud Kit Framework Reference
The Cloud Kit framework provides interfaces for moving data between your app and your iCloud containers. You use Cloud Kit to take your app’s existing data and store it in the cloud so that the user can access it on multiple devices. You can also store data in a public area where all users can access it.
Using the Cloud Kit Framework
Cloud Kit is not intended as a replacement for your app’s existing data objects. Instead, Cloud Kit provides complementary services for managing the transfer of data to and from the cloud. Because it provides minimal offline caching support, Cloud Kit relies on the presence of the network and optionally on the device being configured with a valid iCloud account. A valid iCloud account is required only when you want to save data that is specific to a single user. Apps can always store data in a public area that is readable by all users.
Records are at the heart of all data transactions in Cloud Kit. A record is a dictionary of key-value pairs representing the data you want to save. You can add new keys and values to records at any time and you can create links between related records to organize your data. The CKRecord class defines the interfaces for managing the contents of records.
The classes of the Cloud Kit framework are not meant to be subclassed. You use these classes as-is to save, retrieve, and manipulate data in iCloud. In addition, many of the protocols of this framework are not intended to be adopted by classes outside of Cloud Kit and UIKit. Each protocol reference document includes information about whether you can adopt the protocol in your own classes. Cloud Kit also relies heavily on the use of NSOperation objects to manage the asynchronous transfer of data to and from the server.
Classes
|
Class |
Abstract |
|---|---|
|
|
|
|
A |
|
|
A |
|
|
A |
|
|
A |
|
|
A |
|
|
A |
|
|
A |
|
|
A |
|
|
A |
|
|
A |
|
|
A |
|
|
A |
|
|
A |
|
|
A |
|
|
A |
|
|
A |
|
|
A |
|
|
You use a |
|
|
The |
|
|
The |
|
|
The |
|
|
A |
|
|
A |
|
|
A |
|
|
A |
|
|
A |
|
|
A |
|
|
A |
|
|
A |
|
|
A |
|
|
A |
|
|
A |
|
|
A |
|
|
A |
|
|
An instance of |
|
|
A |
Protocols
|
Protocol |
Abstract |
|---|---|
|
The |
Other Reference
|
Reference |
|---|
Copyright © 2014 Apple Inc. All rights reserved. Terms of Use | Privacy Policy | Updated: 2014-06-02
