ios - Cancel gesture recognizer on button action -
i'm working on ipad app. have view in user can draw finger. view has subview, calculator, , have buttons.
i when user touch button, superview (in user can draw) doesn't take account touch. (so user doesn't draw when touches calculator)
preferably, not change code of calculator view , code of superview. have access them via properties of class.
is there way solve problem please? have tried exclusivetouch, doesn't work.
if have access button action , drawing gesture can set:
gesture.enabled = no;
to cancel current gesture processing , / or prevent starting. when want reenable gesture depends on type , how it's used doing (on next line) work ok.
Comments
Post a Comment