I started trying to recreate the buy button from the app store, which requires a two-step click to buy something. I have to revitalize the extension button. While I have it
[UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:0.75]; sender.autoresizesSubviews = NO; sender.clipsToBounds = NO; sender.frame = CGRectMake(63,326,200,37); [UIView commitAnimations];
which just makes the button get bigger, it doesn't come to life at all. Did I do something wrong or did someone else implement this button behavior?
EDIT:
- (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]; }
source share