I would like to get a list of all ABContacts that have a phone number and only those contacts. Any contact with email that I donβt want to show.
Android has a HAS_PHNONE_NUMBER field that you can request for, but I donβt see anything like it for the iPhone.
For instance:
ABAddressBookRef addressBook = ABAddressBookCreate(); CFArrayRef people = ABAddressBookCopyArrayOfAllPeople(addressBook); //How do I filter people into an array of contacts that all have a phone number?
source share