0

Is there any way to provide the screen, where user can see only contacts than contains emails? (because by default I see all contacts on this screen)

 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];

Then I want to pick up the selected emails.

Venil Aminovich
  • 109
  • 1
  • 9

1 Answers1

0

I do not believe there is a way to get iOS to do this filtering. Note that you need to look for all kinds of email addresses - you have to iterate through the dictionary that you can get. Working with this is a PITA for sure and you have to be careful to not have memory leaks.

Sumit Mundra
  • 3,891
  • 16
  • 29
  • to iterate I need to get all contacts, but I can get the contact only when user selects it. So how can I iterate through all contacts? – Venil Aminovich Dec 11 '12 at 04:47