title: How to hide iOS status bar
body: <p>In my iOS video app status bar is hidden in some view controllers. I have done this using following code.</p>
  
  <pre><code>[[UIApplication sharedApplication] setStatusBarHidden:YES];
  </code></pre>
  
  <ul>
  <li><p>It works for iOS 5 and iOS 6 , but not in iOS 7.</p></li>
  <li><p>I tried with this in particular view controller,</p></li>
  </ul>
  
  <p>Eg:</p>
  
  <pre><code>-(BOOL)prefersStatusBarHidden { return YES; }
  </code></pre>
  
  <p>It works well, but I cant show status bar again in the parent view controller. </p>