Instance Property

keysToFetch

The properties to fetch in the returned contacts.

Declaration

iOS, Mac Catalyst, watchOS
@property(copy, nonatomic) NSArray<id<CNKeyDescriptor>> *keysToFetch;
macOS
@property(copy, atomic) NSArray<id<CNKeyDescriptor>> *keysToFetch;

Discussion

An array of contact property keys or key descriptors from contact objects to be fetched in the returned contacts. For example, CNContactEmailAddressesKey, CNContactPhoneNumbersKey, CNContactFormatterStyleFullName fetches the contact’s email addresses, phone numbers, and contact’s full name with the contact formatter.

See Also