title: How to hide navigation bar when using with tabbar in iOS 4?
body: <p>I am very new to iOS. Here is what I have implemented:</p>
  
  <p>I am doing a app in iOS 4 (as it's required). I have used navigationController as root controller through app delegate.</p>
  
  <p>Then from my first loaded view, I push to another viewcontroller which has implemented tabbar in it, say MyTabBarViewController.</p>
  
  <p>MyTabBarViewController has say 3 viewControllers associated with it via:</p>
  
  <pre><code>MyTabBarController.viewControllers = [NSArray arrayWithObjects:yxzcontroller,abcController,nil];
  </code></pre>
  
  <p>Now I want to show the navigation bar for only the 2nd and 3rd viewcontroller and also want to customise it.</p>
  
  <p>So how do I hide the navigationbar from first viewcontroller(yxzcontroller) of 
  MyTabBarController and customise for others?</p>
  
  <p>I tried:</p>
  
  <pre><code>[self.navigationController.navigationBar setHidden:YES];
  </code></pre>
  
  <p>I also tried:</p>
  
  <pre><code>[self.parentViewController.navigationController setNavigationBarHidden:YES animated:YES];
  </code></pre>
  
  <p>but these don't work from yxzcontroller.</p>
  
  <p>To summarise:</p>
  
  <p>I have NavController as root controller --> Normal ViewController -- > ViewController (with TabBarController)</p>
  
  <p>TabBarController---> yxzcontroller,abcController</p>