Instance Property

container

The container to use for the operation.

Declaration

@property(nonatomic, strong) CKContainer *container;

Discussion

The container sets the context for where the operation should perform its work. The addOperation: method of both the CKContainer and CKDatabase classes implicitly sets the value of this property to their container.

If you execute the operation yourself, either directly or using a custom operation queue, it is recommended that you set the value of this property explicitly. If the value is nil when you execute an operation, the operation object implicitly executes against your app’s default container.

See Also

Accessing the Container