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

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

  •  01-07-2022
  •  | 
  •  

Pergunta

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

Foi útil?

Solução

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

Outras dicas

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)

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top