views:

33

answers:

0

I have an app where I've a UINavigationController in a popover that displays some information. The root item contains a button showing a related Contact. I'd like to press the contact button and display the ABPeoplePickerNavigationController. I've got this code to do it:

ABPeoplePickerNavigationController *contactController = [[ABPeoplePickerNavigationController alloc] init];
[self.navigationController pushViewController:contactController animated:YES];

When I push the button, however, I get this error: Pushing a navigation controller is not supported.

So: is there a way to either access the views within the ABPeoplePickerNavigationController (using topViewController or visibleViewController both give an error), or an alternate way to do this would be appreciated.