Implement animation in UIButton

Posted by sasayins on Stack Overflow See other posts from Stack Overflow or by sasayins
Published on 2009-11-05T07:57:30Z Indexed on 2010/03/26 4:13 UTC
Read the original article Hit count: 242

Filed under:

I'm new to cocoa and iphone programming and I want to implement an animation in UIButton. For example, I create a custom UIButton with a square image. Then when I press that UIButton, the square image will flip. Note that the square image is the image of the UIButton.

[UIButton setImage:[UIImage imageNamed:@"square.png"]];

© Stack Overflow or respective owner

Related posts about iphone