title: Offset on UIWindow addSubview
body: <p>I've got a UITabBar based application that works just fine. Under certain circumstances I am showing a different UIViewController instead though. Now what bugs me is that that I have to adjust the frame for the Test nib (and <strong>only</strong> the Test nib!) to display correctly. (Otherwise the view is below the status bar).</p>
  
  <pre><code>- (void)applicationDidFinishLaunching:(UIApplication *)application
  {
      if (condition) {
  
          UIViewController *vc = [[UIViewController alloc] initWithNibName:@"Test" bundle:nil];
  
          // FIXME this should NOT be required
          CGRect r = vc.view.frame;
          r.origin.y += 20;
          vc.view.frame = r;
  
          [window addSubview:vc.view];
          [window makeKeyAndVisible];
          return;
      }
  
      [window addSubview:tabViewController.view];
      [window makeKeyAndVisible];
  }
  </code></pre>
  
  <p>So maybe something is wrong with the Test nib? Can't be. The Test nib works as desired in a clean new project. And a new clean nib shows the same symptoms. So something must be wrong with the MainWindow nib, right? But the UITabBarController displays just fine.</p>
  
  <p>I am a little confused and running out of ideas here. Any suggestions how to track this down?</p>