title: How to hide status bar for specific viewcontroller in ios 9, using objective-C
body: <p>I want to hide the status bar for specific view controllers, not for all.
  then I tried this,</p>
  
  <pre><code>[[UIApplication sharedApplication] setStatusBarHidden:YES]; in the `.AppDelegate.m` inside the `didfinishlaunchwithoption`  but it didn't work. and also it is deprecated.
  </code></pre>
  
  <p>then I tried in my viewcontroller</p>
  
  <pre><code>- (BOOL) prefersStatusBarHidden{
      return YES;
  }
  </code></pre>
  
  <p>this also didn't work. anyone can help me with this.thnak you
  <strong>I don't want to use any deprecated methods here</strong></p>