简体   繁体   English

我的触摸式移动代表为什么不工作?

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM