I have a UIButton in one of my ViewControllers with three different state images (normal, highlighted and selected). When I press this button, it becomes highlighted and when I release it, selected. I want to make an animation that changes the highlighted image of the button to the selected one in 4 seconds with a fadeIn or so.
Any suggestion?
You have to enroll your own
UIButtonsubclass and you'll probably have to overwritesetSelectedandsetHighlightedwith your custom animation code. The safer bet would be to subclassUIControldirectly and reimplement those selectors so that you don't have anyUIButtonspecific legacy.