I want to try to disable the UITextTapRecognizer, which I think is a built in property of the UITextView, as I suspect it is interfering with a tap gesture recognizer that I want to implement. How is it possible to do this?
Thanks for reading!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m not sure this answers your question directly (i.e. “disable the UITextTapRecognizer”), but I think it might help. You can prevent that tapRecognizer from recognizing gestures, thereby basically “disabling” it (I think).
Try the
gestureRecognizerShouldBegin:orgestureRecognizer:shouldReceiveTouch:delegate protocol methods.look at:
source: Apple docs (event handling guide for iOS)
I hope it helps!