Class

CNContactFetchRequest

An object that defines the options to use when fetching contacts.

Declaration

@interface CNContactFetchRequest : CNFetchRequest

Overview

You need at least one contact property key to fetch a contact’s properties. Use this class with the enumerateContactsWithFetchRequest:error:usingBlock: method to execute the contact fetch request.

Topics

Creating a Fetch Request

- initWithKeysToFetch:

Creates a fetch request for the specified keys.

Specifying the Search Predicate

predicate

The predicate to match contacts against.

Configuring the Fetch Options

mutableObjects

A Boolean value that indicates whether to return mutable contacts.

unifyResults

A Boolean value that indicates whether to return linked contacts as unified contacts.

sortOrder

The sort order for contacts.

CNContactSortOrder

Indicates the sorting order for contacts.

Specifying the Keys to Fetch

keysToFetch

The properties to fetch in the returned contacts.

Relationships

Inherits From

Conforms To

See Also

Fetch and Save Requests

CNSaveRequest

An object that collects the changes you want to save to the user's contacts database.