I have implemented touches method inside a view.
touchesMoved method gets called four to five times and touch gets cancelled automatically.
Can u please tell me the reason for this? Thanks in advance
Asked
Active
Viewed 543 times
3

Juan Boero
- 6,281
- 1
- 44
- 62

Mukul
- 43
- 5
-
Touches Moves method called when touch moves on screen. So there are multiple points on the move path. So the touches moves method called multiple times for points which are on the touch move path. – Pradhyuman sinh Oct 25 '13 at 05:20
-
@ Pradhyuman Chavda: Touches Ended never gets called and Touches Moved gets cancelled even when i am moving my finger – Mukul Oct 25 '13 at 05:22
2 Answers
0
TouchesBegan : will be called when touch begins (Gives starting point of touch) TouchesMoved : will be called when the touch moves(touch the screed and move u r finger)[Give all the touched points between began and end] TouchesEnd : will be called when the touch ends.(Gives the Last touch Point)

Dhanunjay Kumar
- 91
- 7
-
Touches Ended never gets called and Touches Moved gets cancelled even when i am moving my finger – Mukul Oct 25 '13 at 05:20
-
when you didn't add any guesturerecognisers why did u implement that method? – Dhanunjay Kumar Oct 25 '13 at 06:00
0
If you have added any gesturerecognizer in your class then it will cancelled automatically.This happened to me also. when gestureRecognizer gets recognised then touchCancelled method will be called automatically..

Amitabha
- 1,664
- 1
- 12
- 30
-
i have removed all the gestures from that view and controller ,still problem is the same. – Mukul Oct 25 '13 at 05:33
-