title: White status bar disappears when Navigation bar is visible with Tint Color in iOS 7
body: <p>I have 2 <code>UIViewControllers</code>. In the first <code>UIViewController</code>, say <code>ViewController1</code> , I am keeping the <code>UINavigationBar</code> hidden. As my app's theme is black , so I need white <code>UIStatusBar</code> in <code>iOS 7</code> so that it doesn't become invisible in black <code>UINavigationBar</code>. For getting white <code>UIStatusBar</code> I am using this method in <code>iOS 7</code>.</p>
  
  <ol>
  <li>set the <code>UIViewControllerBasedStatusBarAppearance</code> to <code>YES</code> in the <code>plist</code> </li>
  <li>in <code>viewDidLoad</code> do a <code>[self
  setNeedsStatusBarAppearanceUpdate];</code> </li>
  <li><p>add the following method:</p>
  
  <pre><code>-(UIStatusBarStyle)preferredStatusBarStyle{ 
    return UIStatusBarStyleLightContent; 
  } 
  </code></pre></li>
  </ol>
  
  <p>It works fine when I am in ViewController1 . But when I move to ViewController2 then if I set </p>
  
  <pre><code>self.navigationController.navigationBarHidden = NO 
  </code></pre>
  
  <p>in my <code>viewDidLoad</code> method. Then the above code for white <code>UIStatusBar</code> doesn't work. <code>UIStatusBar</code> becomes black and I can't see it because I am using the following codes to customize my <code>UINavigationBar</code></p>
  
  <pre><code>self.navigationController.navigationBar.barTintColor = [UIColor blackColor];
  self.navigationController.navigationBar.tintColor = [UIColor whiteColor];
  self.navigationController.navigationBar.titleTextAttributes = [NSDictionary dictionaryWithObject:[UIColor whiteColor] forKey:UITextAttributeTextColor];
  self.navigationController.navigationBar.translucent = NO; 
  </code></pre>
  
  <p>If I keep <code>UINavigationBar</code> hidden like ViewController1 then white <code>UIStatusBar</code> is visible again. But when <code>UINavigationBar</code> is visible then status bar becomes black again. That's the problem.</p>
  
  <p>Can anyone help me in this context , how can I get white status bar like my ViewController1 ?
  Thanks in advance.</p>