I need to disable the action twoFingerSingleTap from the class UITextTapRecongnizer on UITextView when the keyboard is up to make another function with the same gesture.
someone has an idea??
tks.
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 guess this is a followup from your other question: Prevent tap event on UITextView
Instead of disabling that gesture recogniser you could try ‘hijcaking’ it.
EDIT: if this (according to your edited question) stops working when keyboard shows up then try this: override
- (void)textViewDidBeginEditing:(UITextView *)textViewmethod of yourtextViewDelegateand put the same code inside.