title: Status bar hides but views are displaced in Landscape mode
body: <p>In my app, I do not intend to show the status bar. So, my app covers the whole screen view. I could manage doing it inserting the </p>
  
  <pre><code>- (BOOL) prefersStatusBarHidden{
      return YES;
  }
  </code></pre>
  
  <p>method in my main viewController and also adding to my app delegate</p>
  
  <pre><code> if ([self respondsToSelector:@selector(setNeedsStatusBarAppearanceUpdate)]) {
         // iOS 7
         [self performSelector:@selector(setNeedsStatusBarAppearanceUpdate)];
   } else {
         // iOS 6
         [application setStatusBarHidden:YES withAnimation:UIStatusBarAnimationSlide];
   }
  </code></pre>
  
  <p>This all works well when I open the app in the portrait mode. However, when opened in the landscape mode, while the status bar gets hidden, I see a black band of background image on top of my view. Indeed my view is vertically offset by the height of status bar height (see picture below). </p>
  
  <p>This does not happen if I open the app first in portrait mode and then rotate. So, I am doing something wrong in the initialization of the view frame I thought, which I do by the usual</p>
  
  <pre><code>   CGRect screenRect = [[UIScreen mainScreen] applicationFrame];    
     [self.view setFrame:screenRect];
  </code></pre>
  
  <p>Any suggestions on this would be really appreciated. 
  Thanks in advance,
  Nikhil</p>
  
  <p><img src="https://i.stack.imgur.com/taW6C.png" alt="enter image description here"></p>