Type Method

predicateForContainerOfContactWithIdentifier:

Returns a predicate to find the container of the specified contact.

Declaration

+ (NSPredicate *)predicateForContainerOfContactWithIdentifier:(NSString *)contactIdentifier;

Parameters

contactIdentifier

The contact identifier to be matched.

Return Value

A predicate that can be used to fetch a container from CNContactStore.

Discussion

If the identifier is for a unified contact then this method returns an empty array. To fetch the containers of a unified contact, first fetch the linked contacts and then fetch the container of each linked contact.

See Also

Generating Search Predicates for Containers

+ predicateForContainersWithIdentifiers:

Returns a predicate to find the containers with the specified identifiers.

+ predicateForContainerOfGroupWithIdentifier:

Returns a predicate to find the container of the specified group.