Email Filtering by ABPeoplePickerNavigationController

I am using ABPeoplePicker to display a list of contacts.

I would like to filter out this contact list to show only contacts that have email addresses. How can I do it?

+7
source share
4 answers

I needed this, so I started working on something similar. Check out https://github.com/stuffmc/MCFilteredPeoplePickerNavigationController

+3
source

here is a good blog tutorial for extracting address book values,

http://blog.slaunchaman.com/2009/01/21/cocoa-touch-tutorial-extract-address-book-address-values-on-iphone-os/

try the following:

ABPeoplePickerNavigationController *peoplePicker = [[ABPeoplePickerNavigationController alloc] init]; [peoplePicker setPeoplePickerDelegate:self]; [peoplePicker setDisplayedProperties:[NSArray arrayWithObject:[NSNumber numberWithInt:kABPersonEmailProperty]]]; 
+2
source

ABContactHelper is a great address book wrapper and has some ways to filter contacts based on various things.

https://github.com/erica/ABContactHelper

0
source

I am trying to do this. I got an instance of ABAddressBook, deleted the records I don’t want, and then set picker.addressBook = filteredBook . This is ... KINDA works. The list seems to be filtered, but the entries are duplicated, as it expects the complete list to be there, and it simply copies the existing entries until it receives the expected counter or something else.

0
source

All Articles