Type Method

predicateForContactsInContainer(withIdentifier:)

Returns a predicate to find the contacts in the specified container.

Declaration

class func predicateForContactsInContainer(withIdentifier containerIdentifier: String) -> NSPredicate

Parameters

containerIdentifier

The container identifier to be matched.

Return Value

A predicate that can be used to fetch contacts from CNContactStore.

See Also

Getting Search Predicates

class func predicateForContacts(matchingName: String) -> NSPredicate

Returns a predicate to find the contacts matching the specified name.

class func predicateForContacts(withIdentifiers: [String]) -> NSPredicate

Returns a predicate to find the contacts matching the specified identifiers.

class func predicateForContactsInGroup(withIdentifier: String) -> NSPredicate

Returns a predicate to find the contacts that are members in the specified group.

class func predicateForContacts(matching: CNPhoneNumber) -> NSPredicate

Returns a predicate to find the contacts whose phone number matches the specified value.

class func predicateForContacts(matchingEmailAddress: String) -> NSPredicate

Returns a predicate to find the contacts whose email address matches the specified value.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software