I want to get all the iPhone contacts in my iphone application.Is it possible?If so how?Anybody please help me.
Asked
Active
Viewed 1.3k times
1
-
Hii... If my ans is correct then u can mark it as a correct ans. – Chetan Bhalara Apr 11 '12 at 16:24
-
Check this it may help you.. http://stackoverflow.com/questions/10174889/iphone-how-to-access-the-phone-contact-list-and-display-it-in-tableview – RayofHope Jun 05 '12 at 09:13
1 Answers
7
Apple has a programming guide for the address book framework:
Address Book Programming Guide for iOS
Reference:

Community
- 1
- 1

Chetan Bhalara
- 10,326
- 6
- 32
- 51
-
My requirement is to get the contact list in an array in the application. – Priya Jul 13 '11 at 06:44
-
Hello Priya, See my updated Ans. I have add new two links at start point in Reference section. – Chetan Bhalara Jul 13 '11 at 06:48
-
-
ABAddressBookRef ab = ABAddressBookCreate(); NSMutableArray *retVal = [(NSMutableArray *)ABAddressBookCopyArrayOfAllPeople(ab) autorelease]; CFRelease(ab); NSLog(@"hhjfdfdsbdfdskj"); NSLog(@"%@",retVal); Is this is enough for getting contacts? – Priya Jul 13 '11 at 07:28
-
Its store the data in to NSDictionary. Can we talk on any other messenger more help? – Chetan Bhalara Jul 13 '11 at 07:30
-
This is an array ..right?The retVal array will contain contacts?I am not getting anything?Thats why i asked. – Priya Jul 13 '11 at 07:33