Class

CKFetchRecordZonesOperation

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

Declaration

@interface CKFetchRecordZonesOperation : CKDatabaseOperation

Overview

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.

Topics

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

recordZoneIDs

The IDs of the record zones you want to retrieve.

Processing the Operation Results

fetchRecordZonesCompletionBlock

The block to execute with the fetch results.

Relationships

Inherits From

See Also

Fetching Records

CKFetchRecordsOperation

An operation used to retrieve records from CloudKit.

CKFetchRecordZoneChangesOperation

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

CKServerChangeToken

An object that identifies a specific version of a record.

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