predicateForContacts(matching:)
Returns a predicate to find the contacts whose phone number matches the specified value.
Declaration
class func predicateForContacts(matching phoneNumber: CNPhoneNumber) -> NSPredicateParameters
- phoneNumber:
The phone number to be matched.
Return Value
A predicate that you can use to fetch contacts from CNContactStore.