Is this the right way to delete a contact from the iPhone?
I am trying to delete a contact from the iPhone which I have created. I tried to find a good working example of deleting a contact, however didn't find one. Adding a contact seemed quite easy but deleting one seems hard. The following code does not work, but it seemed to be plausible: ABAddressBookRef addressBook = ABAddressBookCreate(); ABRecordRef delete = ABPersonCreate(); ABRecordSetValue(delete, kABPersonFirstNameProperty, @"Max", nil); ABRecordSetValue(delete, kABPersonLastNameProperty, @"Mustermann", nil); ABAddressBookRemoveRecord(addressBook, delete, &error); ABAddressBookSave