2011-03-23 5 views

답변

1

사용

+0

ABAddressBook 어떻게 접촉에서 주소를 얻으려면? 나는 접촉에서 모든 가치를 얻었다. 그러나 나는 주소를 얻을 수 없다. – bharath

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 

    } 
} 
관련 문제