我正在将地址簿中的所有联系人添加到我的应用程序中,我只需要从所选联系人获取电子邮件地址,这是我的代码
shouldContinueAfterSelectingPerson
- (BOOL)peoplePickerNavigationController:
(ABPeoplePickerNavigationController *)peoplePicker
shouldContinueAfterSelectingPerson:(ABRecordRef)person {
// Select phone number
ABMultiValueRef emailProperty = ABRecordCopyValue(person, kABPersonEmailProperty);
NSString *email = (__bridge NSString *)(emailProperty);
[self dismissModalViewControllerAnimated:YES];
self.view.frame = CGRectMake(0, 44, 320, 370);
return NO;
}
请帮助我摆脱这些人,在此先感谢
我在下面给出的日志中打印它
电子邮件字符串是 ABMultiValueRef 0x1eb2ddb0,值为 0