I want to add * UITapGestureRecognize * r to my UITextView, because I want to close the pop-up window where the TextView is located. So I want the "hide" method from the Popup class to be called when T * extView * is used. I tried this as follows, but for some reason it does not work:
UITapGestureRecognizer *gr = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(show)];
[gr setNumberOfTapsRequired:1];
[viewText addGestureRecognizer:gr];
I also do not want to subclass it, because then I will need to call the "parent" method of "hide".
Maybe you are a good solution to this problem right now.
Thank you in advance.
source
share