parentViewController

Discussion in 'iOS Programming' started by patrover, Sep 6, 2009.

  1. patrover macrumors newbie

    Joined:
    Aug 15, 2009
    #1
    let's say AViewController pushes BViewController,
    now i call bViewController.parentViewController, i'm expecting to get aViewController but i get a navigationController instead..

    can anyone explain? thanks
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    From the documentation on parentViewController:
    Since you're using a navigation view controller hierarchy, the navigation controller is the one responsible.
     
  3. patrover thread starter macrumors newbie

    Joined:
    Aug 15, 2009

Share This Page