title: Black space showing above navigation Bar
body: <ol>
  <li><p>I am not using storyboard for my iOS app.I have manually created
  UIViewController and calling from AppDelegate.The following is the
  code structure that I am using in AppDelegate.Can you please suggest
  me why app shows black space above navigation bar except in iPhone
  4S simulator.Below I have attached screenshot of my issue.<a href="https://i.stack.imgur.com/wMXPg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wMXPg.png" alt="enter image description here"></a></p>
  
  <p>LoginView *loginView ;
  UINavigationController  *myNav ;</p>
  
  <p>loginView  = [[LoginView alloc] initWithNibName:@"LoginView" bundle:nil];</p>
  
  <p>myNav= [[UINavigationController alloc] nitWithRootViewController:loginView];</p>
  
  <p>self.window.rootViewController = myNav;
  [self.window makeKeyAndVisible];</p></li>
  </ol>