init(keysToFetch:)
Creates a fetch request for the specified keys.
Declaration
init(keysToFetch: [any CNKeyDescriptor])Parameters
- keysToFetch:
An array of contact property keys and/or key descriptors from contacts objects to be fetched in the returned contacts. For a list of possible keys, see Contact Keys.
Return Value
The initialized CNContactFetchRequest instance.
Discussion
This is the designated initializer for this class. Using init raises an exception.