1

I want to get all the iPhone contacts in my iphone application.Is it possible?If so how?Anybody please help me.

Ajumal
  • 1,048
  • 11
  • 33
Priya
  • 29
  • 1
  • 1
  • 2

1 Answers1

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
  • what are the required frameworks and how to add frameworks in xcode 4? – Priya Jul 13 '11 at 07:11
  • 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