title: Referencing Parent in Cocoa
body: <p>My question is about how to access the TabBarController from within one of its viewControllers.  </p>
  
  <p>Imagine a mainClass.m that adds tabBarController which has two viewControllers - viewController1 and viewController2.  </p>
  
  <p>In viewController1.m there is a game.  When the game is over, viewController1.m wants to tell tabBarController to display viewController2, but viewController1 has no reference to tabBarController.  How do I reference the viewController's parent?  </p>
  
  <p>How does one change tabBarItems from within the code for the current view?</p>