8
我已經訪問了地址簿併成功地從中提取了記錄和必要的信息。我還提取了recordid。 我的問題是如何使用這個recordid來提取記錄。 我正在使用的代碼是:如何從ABRecordID獲取ABRecordRef?
ABRecordID recordId;
ABAddressBookRef _addressBookRef = ABAddressBookCreate();
NSArray* allPeople = (NSArray *)ABAddressBookCopyArrayOfAllPeople(_addressBookRef);
for (id record in allPeople) {
recordId = ABRecordGetRecordID(record);
//i am saving each one how to use them later to extract particular record
}