objective-c - gestureRecognizer:gestureRecognizer shouldReceiveTouch: 没有被调用
漂亮男人
漂亮男人 2017-05-02 09:24:05
0
2
557
  • (BOOL)gestureRecognizer:(UIGestureRecognizer )gestureRecognizer shouldReceiveTouch:(UITouch )touch

在scrollview中 添加了一个view,并给它增加了一个拖动手势。导致scrollview的拖动和view的pan拖动手势冲突。
解决冲突是要使用该函数。但是怎么没有被调用?

漂亮男人
漂亮男人

reply all(2)
大家讲道理

This method is the delegate method of UIGestureRecognizer. Have you set the delegate for your customized gesture?

仅有的幸福

Just use the addTarget method, there is no need to use Delegate
If you use Delegate, you need to set
GestureRecognizer.delegate = xxx

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template