I need to find a contact in AdreesBook in order to add a new social network. Sometimes I have to find a contact by its phones and emails or by its phones, firstName and lastName, is there any kind of query to get ABRecordRef contact instead of doing whiles?
Many of my users have more than 1000 contacts and I need to update many of them, so it is not efficient if my only solution is to do so many whiles...
Any idea??
Thanks!
Below is method which may help you to get the Contact details using phone number. For that its used
kABPersonPhoneProperty, same way you can write another functions for searching email and name:kABPersonEmailPropertykABPersonFirstNamePropertyFor more details, go through: ABPerson Reference
Hope this helps.