I am trying to create a group in my local address book.
I have successfully implemented the code, and it does work well under iOS6 and iOS7 on 32 bit architecture.
However the same code won't do anything on a 64 bit iPad 4. Has anybody experienced something like this?
Here is the code for creating the group:
CFErrorRef error = NULL;
ABRecordRef newGroup = ABGroupCreate();
bool isSucces;
NSLog(@"newGroup: %@", newGroup);
isSucces = ABRecordSetValue(newGroup,
kABGroupNameProperty,
@"KONTAKT",
&error);
if(!isSucces) NSLog(@"error at setting group value");
isSucces = ABAddressBookAddRecord(addressBook, newGroup, &error);
if(!isSucces)NSLog(@"error at adding record to addressbook");
ABAddressBookSave(addressBook, &error);