title: iOS 7 - Hide status bar on certain view
body: <p>This is a rather unique question. I have searched for hours and could not find the answer. I want ALL <code>UIViewControllers</code> in my app to have the <code>UIStatusBar</code> visible. But on a certain <code>UIViewController</code>, when you tap a <code>UIButton</code>, the following method calls the camera modalView controller. I want to hide the status bar when the following method is called:</p>
  
  <pre><code>-(BOOL)startCameraControllerFromViewController:(UIViewController*)controller
                                   usingDelegate:(id )delegate 
  </code></pre>
  
  <p>I have tried changing the plist file with <code>UIViewController</code> based status bar = YES (I only want the <code>UIStatusBar</code> hidden when that modal view is pulled up)</p>
  
  <p>I have also tried the following within the above method:</p>
  
  <pre><code>[[UIApplication sharedApplication] setStatusBarHidden:YES 
                                     withAnimation:UIStatusBarAnimationNone];
  if ([self respondsToSelector:@selector(setNeedsStatusBarAppearanceUpdate)]) {
  
      [[UIApplication sharedApplication] setStatusBarHidden:YES 
                                         withAnimation:UIStatusBarAnimationNone];
  </code></pre>
  
  <p>Nothing seems to work. Can anyone help?</p>