1

I am having some trouble while using ABPeoplePickerNavigationController. I am developing an ipad application. I wanted to push ABPeoplePickerNavigationController to my navigation controller hierarchy. I know how to extract viewcontroller from a navigation controller, it is not working with ABPeoplePickerNavigationController!!! Please help me out!! Thanks in advance!!

iSagar
  • 107
  • 1
  • 11
  • ABPeoplePickerNavigationController* picker = [[ABPeoplePickerNavigationController alloc] init]; picker.modalPresentationStyle = UIModalPresentationFormSheet; [self.navigationController presentModalViewController:picker animated:YES]; picker.displayedProperties = [NSArray arrayWithObjects: [NSNumber numberWithInt:kABPersonEmailProperty], nil]; – iSagar Aug 09 '11 at 06:48
  • [[UIViewController alloc] init]; tempViewController = picker.topViewController but it crashes when i push this tempViewController as [self.navigationController pushViewController:tempViewController animated:NO]; – iSagar Aug 09 '11 at 06:57

1 Answers1

1

You can't push a navigation controller onto an existing navigation controller stack. You can, however show it modally, using an animation to change between your app's navigation stack to the people picker one.

Matt Connolly
  • 9,757
  • 2
  • 65
  • 61