Instance Property

modifyRecordZonesCompletionBlock

The block to execute after the status of all changes is known.

Declaration

var modifyRecordZonesCompletionBlock: (([CKRecordZone]?, [CKRecordZone.ID]?, Error?) -> Void)? { get set }

Discussion

The block returns no value and takes the following parameters:

savedRecordZones

An array of CKRecordZone objects you tried to save.

deletedRecordZoneIDs

An array of CKRecordZone.ID objects corresponding to the record zones you tried to delete.

operationError

An error object containing information about a problem, or nil if the results are saved successfully.

This block is executed only once and represents your only chance to process the operation results. If you intend to use this block to process results, set it before executing the operation or submitting the operation object to a queue.

This block reports an error of type CKError.Code.partialFailure when it saves or deletes only some of the record zones successfully. The userInfo dictionary of the error contains a CKPartialErrorsByItemIDKey key whose value is an NSDictionary object. The keys of that dictionary are the IDs of the record zones that were not saved or deleted, and the corresponding values are error objects containing information about what happened.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software