views:

53

answers:

0

Hi all,

i'm using the following piece of code to delete dates from a phonebook entry, but i'm not able to get it to work.

BOOL success = ABRecordRemoveValue(abRecord, kABPersonBirthdayProperty, &error);

i also tried using this

BOOL hasUnsavedData = ABAddressBookHasUnsavedChanges(ab);
if (has) {
  BOOL save = ABAddressBookSave(ab, &error);
}

to make sure that it has removed the birthday value, but it says it has no unsaved data. Can anyone guide me through this?

Thanks & Regards, NR