2011-03-23 91 views

回答

1
+0

如何從聯繫地址?我從接觸中獲得了所有的價值。但我不能得到地址。 – bharath 2011-04-06 07:57:02

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 

    } 
} 
相關問題