I use the following code to set the phone number in my application.
CFStringRef addressBookMobile;
ABRecordRef person;
NSString *mobile;
person = CFArrayGetValueAtIndex(people, i);
addressBookMobile = ABRecordCopyValue(person, kABPersonPhoneProperty);
mobile = [NSString stringWithFormat:@"%@", addressBookMobile];
The contact tag is mobile. However, when I use NSLog(@"%@", mobile);. It displays <NSCFType: 0x802ffc0>. Is there any problem for my code?
Should I use const CFStringRef kABPersonPhoneMobileLabeland how to use? As if I am replacing it as the code above, it has an error. Can someone help me? Thank.
source
share