Instance Property

desiredKeys

The fields to retrieve for the requested records.

Declaration

@property(nonatomic, copy) NSArray<CKRecordFieldKey> *desiredKeys;

Discussion

Use this property to limit the amount of data retrieved for each record during the search operation. The value is an array of NSString objects, each of which contains the name of a field from the target records. When you retrieve a given record, only fields whose names match one of the specified keys are included in the returned record. If you specify nil, the operation retrieves all keys for the record. The default value of this property is nil.

If you intend to specify a value, you must do so before executing the operation or submitting the operation object to a queue.

See Also

Configuring the Operation Object

query

The query to use for the search.

cursor

The data cursor to use for continuing the search.

zoneID

The ID of the zone containing the records to search.

resultsLimit

The maximum number of records to return at one time.

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