title: Accessing UITabBarController from UIVIewController
body: <p>I am developing an application based on UITabbar and the view hierarchy as follows.</p>
  
  <p>UITabBarController ----> UINavigationController ----> UIViewController</p>
  
  <p>I need to access the UITabBarController from the UIIVewController . But following properties always returns nil.</p>
  
  <p>self.tabBarController and self.navigationController.tabBarController</p>
  
  <p>Is there a way to access the Tabbarcontroller directly from a child viewController without using the AppDelegate ?</p>
  
  <pre><code>@implementation HomeViewController
  
  - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
  {
      self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
      if (self) {
          // Custom initialization
          self.title = @"Home";
          self.navigationItem.title = @"Home";
  
          self.tabBarItem.image = [UIImage imageNamed:@"TabBarHome"];
  
          UITabBarController *tab = self.tabBarController;
           UITabBarController *tab1 = self.navigationController.tabBarController;
          UITabBarController *tab2 = self.navigationController.presentingViewController;
  
  
  
      }
      return self;
  }
  </code></pre>