Instance Property

desiredKeys

The fields to fetch 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 fetch operation. This property contains 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 keys in this property are included in the returned record. The default value of this property is nil, which causes all keys of the record to be fetched.

Because the records you fetch can be of different types, the array should contain the merged set of all field names for the requested records and should include at least one field name from each record type.

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

See Also

Configuring the Operation Object

recordIDs

The array of IDs corresponding to the records to fetch.

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