I have an array of dictionary for contact details. I am trying to add that record in ABRecordRef
, but I don't understand how it works. Here is my code:
for (int i = 0; i <= [contactArray count]; i++)
{
ABRecordRef person = (ABRecordRef)[contactArray objectAtIndex:i];
ABAddressBookAddRecord(addressBook, group, &error);
ABAddressBookSave(addressBook, &error);
}
I am trying to add this contact records into group using ABGroupAddMember
. Now how can I get the records from NSMutableArray
. Any help will be greatly appreciated. Thank you.