Empty "Groups" in People Picker Navigation Controller

Posted by Meltemi on Stack Overflow See other posts from Stack Overflow or by Meltemi
Published on 2009-08-19T16:32:27Z Indexed on 2010/05/16 0:10 UTC
Read the original article Hit count: 681

I'm using the standard People Picker Navigation Controller to let users associate one of their contacts with one of my objects. It presents itself as a long list of ALL contacts. The back button (top left) says "Groups" but when clicked on it shows an empty screen...even when there are many Groups in the user's address book. I've read through the docs and can't seem to find how to populate the Groups area. Here's how I present the people picker. Fairly standard:

- (IBAction)showPicker:(id)sender {
    ABPeoplePickerNavigationController *picker = [[ABPeoplePickerNavigationController alloc] init];
    picker.peoplePickerDelegate = self;

    [self presentModalViewController:picker animated:YES];
    [picker release];
}

What am I missing?

© Stack Overflow or respective owner

Related posts about addressbook

Related posts about cocoa-touch