Adding ABPeoplePickerNavigationController as a subview

Discussion in 'iOS Programming' started by arunarora, Jun 15, 2009.

  1. arunarora macrumors newbie

    May 26, 2009
    I want to add ABPeoplePickerNavigationController as a subview on my screen of an iphone application.

    I have added as:
    picker = [[ABPeoplePickerNavigationController alloc] init];
    picker.peoplePickerDelegate = self;
    [self.pickerview addSubview: picker.view];
    where pickerview is a UIView pointer on the screen to add the subview.

    I tried it using "presentModalViewController:" and it is working perfectely, but in this way it covers the whole screen , and my requirement is to add it on my screen as a subview like a table.

    can anybody help?
  2. robbieduncan Moderator emeritus


    Jul 24, 2002
    You can't add controllers as subviews: a controller is not a view.

Share This Page