Hi,everyone,
I use the following code to set the retrieve the phone number in my app.
CFStringRef addressBookMobile;
ABRecordRef person;
NSString *mobile;
person = CFArrayGetValueAtIndex(people, i);
addressBookMobile = ABRecordCopyValue(person, kABPersonPhoneProperty);
mobile = [NSString stringWithFormat:@"%@", addressBookMobile];
The tag of the contacts is 'mobile'. However, when I use the NSLog(@"%@", mobile);
. It displays the <NSCFType: 0x802ffc0>
. does any problem for my code?
Should I use the const CFStringRef kABPersonPhoneMobileLabel
and how to use? As if I replace it as the above code, it has the error. Can anyone help me? Thank you.