I am trying to build iPhone App with digits Find a friend feature
I can get list of matching digitUserID
from Digits.
Now I am struggling to match UserID
and CNContacts
.
Please point any examples to deal this.
As update:
do
{
try contactStore.enumerateContactsWithFetchRequest(CNContactFetchRequest(keysToFetch: [CNContactGivenNameKey, CNContactFamilyNameKey, CNContactMiddleNameKey, CNContactEmailAddressesKey,CNContactPhoneNumbersKey])) {
(contact, cursor) -> Void in
self.results.append(contact)
}
}
catch{
print("Handle the error please")
}
The above I have managed to get all contact but I don't know how to pass a phone number filter into this and get exact contact match with CNContact