title: How to hide navigation bar back button
body: <p>My question is simple, How to hide back button in navigation bar? I see similar question <a href="https://stackoverflow.com/questions/614212/how-to-hide-back-button-on-navigation-bar-on-iphone">here</a> in stack overflow but</p>
  
  <pre><code>self.navigationItem.hidesBackButton = YES;
  </code></pre>
  
  <p>not working for me. I am using below code because RootViewController is my Singleton class.</p>
  
  <p>Thanks </p>
  
  <p>i still use both in viewDidLoad but both are not working</p>
  
  <pre><code>[RootViewController sharedFirstViewController].navigationItem.hidesBackButton = YES;
  
  [RootViewController sharedFirstViewController].navigationItem.backBarButtonItem=nil;
  </code></pre>