I want to make a Buy Now button in my application, which should work just like in the App Store, but I donβt know how to resize UIButton using animation.
I tried the following, but it resized the button at the same time, and not as an animation:
[UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:10.5]; [buyButton setFrame:CGRectMake(20, 115, 70, 21)]; [UIView commitAnimations];
Where "buyButton" is UIButton.
I checked this post with the UIButton AppStore purchase button animation , but it doesn't seem to work.
Peter source share