Contents

predicateForContacts(matching:)

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

Declaration

class func predicateForContacts(matching phoneNumber: CNPhoneNumber) -> NSPredicate

Parameters

  • phoneNumber:

    The phone number to be matched.

Return Value

A predicate that you can use to fetch contacts from CNContactStore.

See Also

Getting Search Predicates