Hey I'm trying to add an ABPerson to an ABGroup. I get no errors or anything. My output tells me the person has been added successfully.
if(ABGroupAddMember(self.group, [allContacts objectAtIndex:indexPath.row], &error))
NSLog(@"Added person: %@ to group: %@", ABRecordCopyCompositeName([allContacts objectAtIndex:indexPath.row]), ABRecordCopyCompositeName(self.group));
if(ABAddressBookSave(self.addressBook, &error))
NSLog(@"Commited changes.");
These two statements return the correct output.
But upon querying the group members, I get an empty array.
NSLog(@"%@", ABGroupCopyArrayOfAllMembers(self.group)); //returns null
If anybody has any ideas, I'd really appreciate it.