Count total number of Phone Numbers in AddressBook iPhone

Posted by AWright4911 on Stack Overflow See other posts from Stack Overflow or by AWright4911
Published on 2010-05-14T06:58:26Z Indexed on 2010/05/14 7:04 UTC
Read the original article Hit count: 343

Filed under:
|
|
|

I am trying to get the total count for the phone numbers listed in the AddressBook, in all groups as a whole.

I can successfully retrieve Person count and Group count, just not the total number of Phone Numbers.

    ABAddressBookRef m_addressbook = ABAddressBookCreate();
    CFIndex nPeople  = ABAddressBookGetPersonCount(m_addressbook);
    CFIndex nGroups  = ABAddressBookGetGroupCount(m_addressbook);

© Stack Overflow or respective owner

Related posts about abaddressbook

Related posts about iphone