When I scroll My Contacts App to the bottom, where it shows the number of contacts, It says 2568
contacts.
But in my app when I try to fetch the number of contacts from AddressBook, by ABAddressBookGetPersonCount, I get 2582
contacts.
Has Anyone noticed this? Why is this difference there? Does the AddressBook framework give me wrong information??
EDIT
CFArrayRef allPeople = ABAddressBookCopyArrayOfAllPeople(addressBook);
CFIndex nPeople = ABAddressBookGetPersonCount(addressBook);
NSLog(@"num people to send: %ld", nPeople);
NSLog(@"num people in array: %ld", CFArrayGetCount(allPeople));
These two logs, give me the same number, however this number is different from that written at the bottom of the contacts app in iphone.