touchesMoved method gets called four to five times and touch gets cancelled

StackOverflow https://stackoverflow.com/questions/19581284

  •  01-07-2022
  •  | 
  •  

Вопрос

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

Это было полезно?

Решение

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..

Другие советы

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)

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top