An operation used to retrieve zones from a database in CloudKit.


@interface CKFetchRecordZonesOperation : CKDatabaseOperation


Use this operation object to fetch record zones so that you can ascertain their capabilities.

If you assign a completion block to the completionBlock property of the operation object, the completion block is called after the operation executes and returns its results to you. You can use a completion block to perform housekeeping chores related to the operation, but do not use it to process the results of the operation itself. Any completion block you specify should be prepared to handle the failure of the operation to complete its task, whether due to an error or an explicit cancellation.


Initializing the Operation Object

- initWithRecordZoneIDs:

Initializes and returns an operation object configured to fetch the specified record zones.

Getting All Record Zones

+ fetchAllRecordZonesOperation

Returns an operation object that can be used to fetch all record zones in the current database.

Configuring the Operation Object


The IDs of the record zones you want to retrieve.

Processing the Operation Results


The block to execute with the fetch results.


Inherits From

See Also

Fetching Records


An operation used to retrieve records from CloudKit.


An operation that fetches record changes across the given record zone.


An object that identifies a specific version of a record.