0

有没有办法提供屏幕,用户只能看到联系人而不是包含电子邮件?(因为默认情况下我会在此屏幕上看到所有联系人)

 ABPeoplePickerNavigationController *picker = [[ABPeoplePickerNavigationController alloc] init];
    // place the delegate of the picker to the controll
    picker.peoplePickerDelegate = self;

    // showing the picker
    [self presentModalViewController:picker animated:YES];
    // releasing
    [picker release];

然后我想拿起选定的电子邮件。

4

1 回答 1

0

我不相信有办法让 iOS 进行这种过滤。请注意,您需要查找所有类型的电子邮件地址 - 您必须遍历可以获得的字典。使用它肯定是一个 PITA,你必须小心不要有内存泄漏。

于 2012-12-11T04:44:36.233 回答