title: iOS 7 resizing main view to adjust for status bar
body: <p>Rather than having to adjust every single XIB in my application, I was hoping to just resize the main view.</p>
  
  <p>I did this in AppDelegate, with partial success:</p>
  
  <pre><code>if (kCFCoreFoundationVersionNumber &gt; kCFCoreFoundationVersionNumber_iOS_6_1) {
      NSLog(@"iOs 7 detected");
      frame.origin.y += 20.0;
      frame.size.height -= 20.0;
      [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackOpaque];
  }
  
  self.window = [[[UIWindow alloc] initWithFrame:frame] autorelease];
  </code></pre>
  
  <p>The whole window moves down, the status bar shows nicely, BUT all my views are now 20 pixels too tall for the screen, as if my -20 for the height did not have any effect.</p>
  
  <p>Does anyone have any idea as to how I can get the main window to be the right height?</p>
  
  <p>Thanks!</p>