Is it a true statement that UIGesturesRecognizer effectively replaced any manual control afforded to us by
- touchesBegan:withEvent:
– touchesMoved:withEvent:
– touchesEnded:withEvent:
– touchesCancelled:withEvent:
Just looking for a confirmation here.
Thanks
If you are saying that the methods is not going to be called, this is not true.
If you are saying that the
UIGesturecan do what this methods do, the answer is yes, with UIGestures you can do all that you can do with this methods you posted. And probably in an easy way to code 🙂You can get the state of the gesture, the view and others.
And with the UIGestures is easy to know if is a tap, a longpress, a swipe, etc.
Take a look at the Reference
Edit:
An example for you, to add a PanGesture, that will be handled after:
your method that will handle the pan, will receive the gesture, and will look like: