ios - Using gesture of the subclass over the gesture of the parent class -
i have class myview subclassing uiview adding tap gesture whole view.
i have class myviewwithtextfield subclassing myview. in view, there uitextfield added gesture.
my problem when tap on uitextfield, gesture recognizer's target never called it's 1 parent's gesture recognizer called.
i tried return false in pointinside:point:withevent method of myview when tap inside uitextfield doesn't change thing.
how can resolve problem?
you need set userinteractionenabled on subviews, gesture not ignored on subviews.
subviews.userinteractionenabled = yes;
Comments
Post a Comment