(BOOL)gestureRecognizer:(UIGestureRecognizer )gestureRecognizer shouldReceiveTouch:(UITouch )touch
Add a view to the scrollview and add a drag gesture to it. This causes scrollview dragging and view pan dragging gestures to conflict.
To resolve conflicts, use this function. But why wasn't it called?
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