Animate UIButton, Layout III
I made it! Regarding the annoying thing, that when you animate an UIButton, it won’t scale its image without jumps. After some research in the net, lots of people have the same problem, even in apple’s developer forum was no direct solution for that. So I left the UIButton but not the idea and created a custom button inherited from an UIImageview. This custom button implements now 4 UIImages for each state (normal on, pressed on, normal off…), a touch handler to switch images and to trigger an action message to the first responder in an external class. And here we go!
Now, when you press the start button it changes to “running..”. As soon as the phone gets gps fix, the button scales and moves to the position where the pause button was. The pause button meanwhile moves to replace the start button. So you have always the most likely used button for your next playback interaction at one place, and through its appearance “highlighted”.
For the layout I rearranged buttons and symbols and put the header into a frame.
Filed under: Uncategorized | Leave a Comment
Tags: animate UIbutton, iphone, locative drama, scratch
No Responses Yet to “Animate UIButton, Layout III”