Instance Method

allKeys

Returns an array of strings corresponding to all keys currently in the record.

Declaration

- (NSArray<CKRecordFieldKey> *)allKeys;

Return Value

An array of NSString objects. The returned array contains only the keys that have corresponding values in the record. If no keys are set for the record, this method returns an empty array.

Discussion

This method may not return all possible keys in the record. Specifically, the method does not return keys whose values are nil.

See Also

Accessing the Record’s Fields

- objectForKey:

Returns the value for the given key stored in the record.

- setObject:forKey:

Sets the value for the specified key.

- objectForKeyedSubscript:

Returns the value for the given key stored in the record.

- setObject:forKeyedSubscript:

Adds the specified key-value pair to the record.

- changedKeys

Returns an array of strings representing the keys that have changed recently.