I\'m really struggling with ABAddressBookGetPersonWithRecordID at the moment. I am saving an ID, and then trying to call it back up again. Currently im doing something simpl
NSNumber is an object, not an integer.
To insert an NSNumber object into a format string (such as for NSLog), you should use %@ (not %d).
NSNumber *recordId = [NSNumber numberWithInteger:ABRecordGetRecordID(person)];
NSLog(@"record id is %@",recordId);
Similarly, if you have the recordID in an NSNumber object, you can get the integer value using integerValue:
ABRecordRef person = ABAddressBookGetPersonWithRecordID(ab,recordId.integerValue);