title: UIscrollview resize problem
body: <p>i have a srollview with textfields and labels as its subview, for two textfields i want to show UIpickerview.
  For example: when user touches textfield11 i want to show a picker that slides up from the bottom of the screen, at this point i want to change height of my scrollview too, but it is not working.</p>
  
  <pre><code>CGRect scrollframe = scrollView.frame;
      NSLog(@"scrollframe.height=%f, pick height=%f",scrollframe.size.height, pick.frame.size.height);
      scrollframe.size.height -= pick.frame.size.height;
      [UIView beginAnimations:@"start" context:NULL];
      [UIView setAnimationDuration:0.2];
      [UIView setAnimationBeginsFromCurrentState:YES];
      [scrollView setFrame:scrollframe];
      NSLog(@"scroll height = %f",scrollframe.size.height);
      NSLog(@"scrollview height = %f", scrollView.frame.size.height);
      [pick setFrame:CGRectOffset([pick frame], 0, -220)];
      [UIView commitAnimations];
  </code></pre>
  
  <p>This is console log..</p>
  
  <p>2011-06-08 10:43:31.316 AESDirect[281:207] scrollframe.height=416.000000, pick height=216.000000
  2011-06-08 10:43:31.316 AESDirect[281:207] scroll height = 200.000000
  2011-06-08 10:43:31.317 AESDirect[281:207] scrollview height = 200.000000
  <img src="https://i.stack.imgur.com/YfthT.png" alt="before scrolling"></p>
  
  <p><img src="https://i.stack.imgur.com/8unLo.png" alt="after scrolling"></p>