2011-03-23 107 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 

    } 
} 
相关问题