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