Animate move and scale of image UIButton

Posted by Sam V on Stack Overflow See other posts from Stack Overflow or by Sam V
Published on 2010-04-12T04:40:20Z Indexed on 2010/04/12 4:43 UTC
Read the original article Hit count: 660

Filed under:
|
|
|

I want it to be animated so I'm using [UIView beginAnimations]

I've tried animating using button.imageView.frame (with image set as imageView) but it only animates the position, the image doesn't get scaled down at all.

using hateButton.frame (when image is set as backgroundImage), the backgroundImage gets scaled down but it's not animated.

How do I animate-scale a UIButton image?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uibutton