Reputation: 2448
in the method
- (BOOL)peoplePickerNavigationController: (ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person {
im trying to simply access ABRecordRef as a variable, but i keep getting the error
expected expression before 'ABRecordRef'.
I can already get names and company info, but not the ABRecordRef.
What I am doing is:
NSLog(@"Contact Reference: %d", ABRecordRef);
Upvotes: 0
Views: 3957
Reputation: 523724
Did you
#import <AddressBook/AddressBook.h>
? And what do you mean by
contactRef = [NSString stringWithFormat:@"%d", ABRecordRef];
? It doesn't make sense considering ABRecordRef
is a type, not a number.
Upvotes: 4