How do I enable the swipe gesture recognition for a UITextView?
This is my code and the event attach to it is not firing. It works for taps just not for swipes.
// Add swipe support for easy textview content clean up
UISwipeGestureRecognizer *swipe = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(eraseTextWithSwipe:)];
[targetContent addGestureRecognizer:swipe];
[swipe release];
How do I do that?
I found a solution that works well for me.
You need to set the delegate (referring to the code above)
then you need to add a delegate to track multiple gestures, which will be able to track the swipe and the scrolling
re-enable the scroll in the callback function (in the example above eraseTextWithSwipe)