title: After rotation UIView coordinates are swapped but UIWindow's are not?
body: <p>Using Xcode 4.2.1 iPad iOS 5.0.1, create a new "Single View" iPad project. In the controller, add:</p>
  
  <pre><code>- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
      return YES;
  }
  
  - (void) dumpView: (UIView *) view {
      CGRect frame = view.frame ;
      CGRect bounds = view.bounds ;
      CGPoint center = view.center ;
  
      NSLog(@"view [%@]:%d frame=%@ bounds=%@ center=%@"
            ,   NSStringFromClass(view.class)
            ,   [view hash]
            ,   NSStringFromCGRect(frame)
            ,   NSStringFromCGRect(bounds)
            ,   NSStringFromCGPoint(center)) ;
  }
  
  - (void) didRotateFromInterfaceOrientation:(UIInterfaceOrientation) fromInterfaceOrientation {
  
      NSLog(@"INViewController.didRotateFromInterfaceOrientation: %d to %d", fromInterfaceOrientation, self.interfaceOrientation) ;
      [self dumpView: self.view] ;
      [self dumpView: self.view.superview] ;
  }
  </code></pre>
  
  <p>Run it, rotate the device and you will get:</p>
  
  <pre><code>INViewController.didRotateFromInterfaceOrientation: 2 to 4
  view [UIView]   bounds={{0, 0}, {1024, 748}} center={394, 512}
  view [UIWindow] bounds={{0, 0}, {768, 1024}} center={384, 512}
  </code></pre>
  
  <p>In other words, the UIView has its coordinates "swapped to landscape" as expected, but its parent UIWindow still claims to be in portrait mode...</p>
  
  <p>Also, the UIView size seems to be slightly wrong: the y coordinate which should be at 20 is at 0 ...</p>
  
  <p>Anyone knows what this means?</p>