1
내 IOS 응용 프로그램에서 이름과 일치하는 연락처의 전화 번호를 찾고 싶습니다.연락처의 전화 번호를 찾는 방법은 무엇입니까? (Abaddressbook)
CFErrorRef *error = NULL;
// Create a address book instance.
ABAddressBookRef addressbook = ABAddressBookCreateWithOptions(NULL, error);
// Get all people's info of the local contacts.
CFArrayRef allPeople = ABAddressBookCopyArrayOfAllPeople(addressbook);
CFIndex numPeople = ABAddressBookGetPersonCount(addressbook);
for (int i=0; i < numPeople; i++) {
// Get the person of the ith contact.
ABRecordRef person = CFArrayGetValueAtIndex(allPeople, i);
## how do i compare the name with each person object?
}