title: Hide the status bar on iPhone on a single view?
body: <p>I want to show the status bar in my app in all views but one. I have tried modifying the 'status bar is initially hidden' in the plist, i have tried:     </p>
  
  <pre><code>[[UIApplication sharedApplication] setStatusBarHidden:YES];
  </code></pre>
  
  <p>That hides the bar but leaves an ugly blue box where the status bar was (which isn't part of my view, there's nothing blue on there).</p>
  
  <p>I have also tried altering the layout wants full screen and status bar settings in the 'interface builder' bit of Xcode 4.2.</p>
  
  <p>Any suggestions?</p>
  
  <p>EDIT - SORT OF SOLUTION: </p>
  
  <p>I have done it by including: </p>
  
  <pre><code>    -(void)viewWillDisappear:(BOOL)animated{
  
  
      [[UIApplication sharedApplication] setStatusBarHidden:YES];
  
  }
  
  
  -(void)viewDidAppear:(BOOL)animated{
  
  
      [[UIApplication sharedApplication] setStatusBarHidden:NO];
  
  }
  </code></pre>
  
  <p>on every single page that I want the status bar to be on.</p>
  
  <p>It still looks choppy and rubbish because the tab bar appears and reappears each time you switch a view. But i've had enough, worked on this stupid problem for about 5 hours now so this will have to do.</p>
  
  <p>SECOND EDIT - </p>
  
  <p>Fixed the choppyness by including setStatusBarHidden=NO in viewWillAppears. God knows how everything works but it does.</p>