3

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

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 Answers2

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)

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