title: UIView animation change size of button
body: <p>I started trying to recreate the buy button from the app store which requires a 2-stage click to buy something. I to animate the button expanding. So far I have this</p>
  
  <pre><code>[UIView beginAnimations:nil context:nil];
  [UIView setAnimationDuration:0.75];
  
  sender.autoresizesSubviews = NO;
  sender.clipsToBounds = NO;
  sender.frame = CGRectMake(63,326,200,37);
  
  [UIView commitAnimations];
  </code></pre>
  
  <p>which just causes the button to become larger, it doesn't animate at all. Have I done something wrong or has anyone else implemented this type of button behaviour?</p>
  
  <p>EDIT:</p>
  
  <pre><code>- (IBAction) buyButtonAction: (UIButton *) sender {
  
  [UIView beginAnimations:nil context:nil];
  [UIView setAnimationDuration:1.5];
  [UIView setAnimationDelay:0.5];
  [UIView setAnimationCurve:UIViewAnimationCurveEaseIn];
  
  sender.clipsToBounds = NO;
  
  sender.frame = CGRectMake( CGRectGetMinX( sender.frame) - 30, CGRectGetMinY(sender.frame), 200, 37);
  [sender setTitle:@"Touched Touched Touched" forState:UIControlStateNormal];
  
  
  [UIView commitAnimations];
  }
  </code></pre>