[英]why isn't my touch move delegate working?
The first time UITouch
begin and UITouch
moved resulted in the delegate getting called correctly. 第一次
UITouch
开始并且UITouch
移动导致UITouch
被正确调用。 But after adding a UIPanGestureRecognizer
to the view only UITouch
begin is called but UITouch
moved is not called. 但是,在将
UIPanGestureRecognizer
添加到视图后,仅调用UITouch
begin,但不调用UITouch
移动。
You might need to add "gestureRecognizer.cancelsTouchesInView=NO;" 您可能需要添加“ gestureRecognizer.cancelsTouchesInView = NO;”。 to continue receiving touch events on your view.
继续接收您视图中的触摸事件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.