Type Method

defaultContainer

Returns the default container object for managing the current app’s content.

Declaration

+ (CKContainer *)defaultContainer;

Return Value

The container object associated with the current app’s content. This method always returns a valid container object.

Discussion

Use this method to retrieve the container for your app’s native content. This container is the one your app typically uses to store its data. If you want the container for a different app, create and initialize that container using the containerWithIdentifier: method.

During development, the returned container object points to a development version of your app’s container. When you ship your app, the returned object points to the live production environment.

See Also

Creating Container Objects

+ containerWithIdentifier:

Returns the container object associated with the specified identifier.