How to get the contacts in iPhone? I need to get all attributes from iPhone contacts. How to achieve programmatically using MonoTouch?
Asked
Active
Viewed 3,857 times
2 Answers
4
ABAddressBook iPhoneAddressBook = new ABAddressBook();
ABPerson[] Contacts = iPhoneAddressBook.GetPeople();
foreach (ABPerson item in Contacts) {
ABMultiValue<NSDictionary> Contact = item.GetPhones();
foreach (ABMultiValueEntry<NSDictionary> cont in Contact) {
// cont.Label indicates the type ( home,work,etc)
// get the contact via cont.Value
}
}

bharath
- 14,283
- 16
- 57
- 95

Saboor Awan
- 1,567
- 4
- 24
- 37
1
Use ABAddressBook

Jason
- 86,222
- 15
- 131
- 146
-
How to get the Address from contact? i got all values from contact. But i cant get the Address. – bharath Apr 06 '11 at 07:57