0

Does anyone have an example of tell me how I might open up the ABPeoplePickerNavigationController inside a popover. I have the NavigationController that is being used in the popover doing the opening, but it opens up full screen/modal.

Am I missing something here or will I need to write my own people picker to show it in the popover?

Thanks,

smcdrc
  • 1,671
  • 2
  • 21
  • 29

1 Answers1

3

Create your UIPopoverController, then add an ABPeoplePickerNavigationController.

ABPeoplePickerNavigationController *contacts = [[ABPeoplePickerNavigationController alloc] init];
self.popoverController = [[UIPopoverController alloc] initWithContentViewController:contacts];
WrightsCS
  • 50,551
  • 22
  • 134
  • 186
  • Where do I put the delegate methods for this? I have them in the Nav controller where this is being shown. Is that the correct spot, because they aren't getting called? – smcdrc Jan 28 '11 at 13:14
  • 1
    I was missing [picker setPeoplePickerDelegate:self]; – smcdrc Jan 29 '11 at 21:33