title: UIScrollView not getting new size on orientation change
body: <p>I have a very simple <code>UIScrollView</code> example that simply doesn't do what it's supposed to.
  Not sure if it's a bug with the API or a bug in my code.</p>
  
  <p>Basically, I've got a <code>UIViewController</code> with a <code>UIScrollView</code> as it's view.
  When I add it to the <code>UIWindow</code> and change the orientation of the iPad I log out the <code>UIScrollView</code>s size, which is incorrectly(?) reported.</p>
  
  <p>Here's my <code>UIViewController</code> implementation:</p>
  
  <pre><code>@implementation CustomViewController
  - (void)loadView {
    scrollView = [[[UIScrollView alloc] init] autorelease];
    scrollView.delegate = self;
    scrollView.backgroundColor = [UIColor redColor];
    self.view = scrollView;
  }
  
  - (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
    CGSize rect = scrollView.frame.size;
    NSLog(@"will rotate w%f h%f", rect.width, rect.height);
  }
  
  - (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {
    CGSize rect = scrollView.frame.size;
    NSLog(@"will animate rotation w%f h%f", rect.width, rect.height);
  }
  
  - (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation {
    CGSize rect = scrollView.frame.size;
    NSLog(@"did rotate w%f h%f", rect.width, rect.height);
  }
  
  - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    return YES;
  }
  
  @end
  </code></pre>
  
  <p>When I run the above code I see the following entries in my console:</p>
  
  <pre><code>2010-07-11 11:03:05.214 Untitled2[6682:207] will rotate w768.000000 h1004.000000
  2010-07-11 11:03:05.214 Untitled2[6682:207] will animate rotation w748.000000 h1024.000000
  2010-07-11 11:03:05.619 Untitled2[6682:207] did rotate w748.000000 h1024.000000
  2010-07-11 11:03:07.951 Untitled2[6682:207] will rotate w748.000000 h1024.000000
  2010-07-11 11:03:07.958 Untitled2[6682:207] will animate rotation w768.000000 h1004.000000
  2010-07-11 11:03:08.367 Untitled2[6682:207] did rotate w768.000000 h1004.000000
  </code></pre>
  
  <p>As you can see, the orientation changes does resize the <code>UIScrollView</code>, but only to allow the new statusbar.
  I would expect that the width and height drastically change, as the <code>UIScrollView</code> is how wider than it is high and vice versa.</p>
  
  <p>Is there a way to get the <code>UIScrollView</code> to report it's real size?</p>