Is there a way to make custom animation when I click on the iPhone button? I would like something like an App Store button - it shows the price, and then when you click on it, it changes color, and the text changes to purchase now, and then when you click it again, it completes the purchase.
UIViewAnimationTransition contains only a few values that do not provide full functionality. Is it possible to do something similar, but with animation:
- (IBAction) changeButtonDisplay:(id)sender {
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.8];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlDown forView:purchaseButton cache:NO];
[purchaseButton setTitle:@"Buy Now" forState:UIControlStateNormal];
[purchaseButton setBackgroundColor:[UIColor greenColor]];
[purchaseButton addTarget:self action:@selector(purchaseItems:) forControlEvents:UIControlEventTouchUpInside];
[UIView commitAnimations];
}
, , . , UIButton ""? , ?