title: Getting the correct bounds of UIViewController's view
body: <p>I have an iPad-application. In landscape orientation the <code>UIViewController</code>'s view actual width = <code>1024px</code> and height = 768 - 20 (statusBar) - 44 (navigationBar) = <code>704px</code>.</p>
  
  <p>So I wanna get this <code>[1024 x 704]</code> size and I'm using <code>self.view.bounds</code> for it. It returns <code>[748 x 1024]</code>, which is wrong! But when I rotate the screen twice (current -> portrait -> current), the view's bounds are correct - <code>[1024 x 704]</code>. </p>
  
  <p>The view was initialized like this:</p>
  
  <pre><code>- (void)loadView {
      self.view = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]];
      self.view.backgroundColor = [UIColor lightGrayColor];
  }
  </code></pre>
  
  <p>And bounds were get like this:</p>
  
  <pre><code>- (void)viewDidLoad {
      [super viewDidLoad];
      NSLog(@"bounds = %@", NSStringFromCGRect(self.view.bounds));
  }
  - (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation {
      NSLog(@"bounds = %@", NSStringFromCGRect(self.view.bounds));
  }
  </code></pre>
  
  <p>So the question is.. How can I get the correct view's bound in the very beginning?</p>