I have a UIView of which I want to know when the user is doing:
touchDownInside (to highlight the view)
touchUpInside (to confirm the action)
touchUpOutside (to cancel and reset the hightlight)
what gestureRecognizer can do this for me?
Please go though these four methods also which your view can override to handle the four distinct touch events:
1) finger or fingers touches the screen
2)finger or fingers move across the screens(this message repeatedly as a finger moves.)
3)finger or fingers is removed from the screen
4) a system event,interrupts a touch before it ends
You can do this implementing the touches methods itself, why do you need gesture recognizer?
The above function for touch down.
The above function for touch up. And the combination of both for cancel.