Is there a way I can put animation (may be flip animation) on button image change on tab?

I know one way of doing it is with UIView instead of UIButton. Can it be done on UIButton?

Thanks for your help.