Alter button color after touch down timing
Here is my challenge:
The user is to touch down and wait 1.5 seconds on a button. After the 1.5 seconds, I want to change the color of the button to green. If the user touches up in the button after this 1.5 seconds, I perform an action. If the user touches up outside of the button, the color of the button is changed back and nothing else happens.
I tried to implement this with a timer, a bunch of BOOLs and touch up/down actions, but that is becoming a mess and acting a bit odd.
Given this great group, I want to know if there is a native way in the SDK to perform this capability.
|