IPhone sdk: How to get the count of all phone numbers in the address book?
I think you are looking for ABGroupCopyArrayOfAllMembers . See the Address Book Programming Guide and QuickContacts example for more information on using the AB structure.
source to share
from what I can tell by looking quickly ABMultiValue
in AddressBook.sqlitedb
, you can get it like this:
1 - sqlite before /var/mobile/Library/AddressBook/AddressBook.sqlitedb
2 - SELECT value FROM ABMultiValue
=> to some array
3 - count everything that matches /^[0-9 +]+$/
look around to help you with this.
Edit: There might also be a way to do it with this method: How do you get the person's phone number from the address book?
source to share