I found a solution that works well for me.
You need to install a delegate (referring to the code above)
swipe.delegate = self;
then you need to add a delegate to track multiple gestures that can track scrolling and scrolling
- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGesture
{
yourTextbox.scrollEnabled = NO;
return YES;
}
enable scrolling again in the callback function (in the example above eraseTextWithSwipe)
source
share