Answer the question
In order to leave comments, you need to log in
ABAddressBookAddRecord returns NO and does not fill error?
Faced with a mystical error.
There is code that creates a new group in the address book:
CFErrorRef error = NULL;
ABRecordRef group = ABGroupCreate();
if (!ABRecordSetValue(group, kABGroupNameProperty, name, &error))
return nil;
if (!ABAddressBookAddRecord(_book, group, &error))
return nil;
...
ABAddressBookAddRecord
returns NO
and does not fill the variable error
(after calling the function, it remains NULL
). Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question