iPhone Delete Groups in Address Book
I have a weird problem not sure how to go about this.
I am trying to delete an empty group... All the codes execute correctly but the
group could not be deleted. After i quit the app. using contacts, the group is still there.
Hope that any one can point me in the correct direction.
ABRecordRef group = ABGroupCreate();
ABAddressBookRef addressBook = ABAddressBookCreate();
ABRecordSetValue(group, kABGroupNameProperty,GroupNameToDelete, NULL);
ABAddressBookRemoveRecord(addressBook, group, NULL);
ABAddressBookSave(addressBook, NULL);
|