I want to select multiple contacts from the iPhone address book and save selected contacts in my app. then I have to retrieve record of that selected contacts.
Asked
Active
Viewed 4,521 times
0
-
2That's nice. Did you have an real question? – Mitch Wheat May 09 '13 at 09:26
-
your not asking a question here. what is the issue your having ? do you have any code to show us ? have you tried / researched / googled anything before asking for help ? – Simon McLoughlin May 09 '13 at 09:28
-
i found from google with example also :) http://stackoverflow.com/questions/3747844/get-a-list-of-all-contacts-on-ios – Rushabh May 09 '13 at 09:34
-
Check My Answer : http://stackoverflow.com/a/14260304/1603072 , if it helps. – Bhavin May 09 '13 at 09:44
2 Answers
0
Try this
ABAddressBookRef addressBook = ABAddressBookCreate( );
CFArrayRef allPeople = ABAddressBookCopyArrayOfAllPeople( addressBook );
CFIndex nPeople = ABAddressBookGetPersonCount( addressBook );
for ( int i = 0; i < nPeople; i++ )
{
ABRecordRef ref = CFArrayGetValueAtIndex( allPeople, i );
...
}

Rajneesh071
- 30,846
- 15
- 61
- 74