Adding ABPeoplePickerNavigationController as a subview

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

  1. arunarora macrumors newbie

    Joined:
    May 26, 2009
    #1
    Hello,
    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

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    You can't add controllers as subviews: a controller is not a view.
     

Share This Page