i have view (parent) , subview (child). child uicontrol, responding uicontroleventtouchdowninside, parent has swipe recogniser. catch swipes if start in child.
question: how can recognise swipe before tap? there way tell iphone gestures in parent come before gestures in child?
thanks help!
edit changed child uicontrol (instead of using tap recogniser). i'm not sure matters answer question thought i'd mention anyway.
edit 2
in response 2 answers have added tap recogniser child again , tried delay (and fail) tap recognition can swipe across big view (parent) containing child. no luck far.
edit 3
i keep child uicontrol , use uitouchdowninside rather tap recogniser because want use down event rather up event.
edit 4
now swipe gets detected in child, none of following gets detected: uicontroleventtouchdragoutside, uicontroleventtouchdragexit , uicontroleventtouchcancel , need @ least 1 of these detect when user doesn't mean tap on child : /
check - (void)requiregesturerecognizertofail:(uigesturerecognizer *)othergesturerecognizer
in uigesturerecognizer. tap, swipe gesture has fail.
Comments
Post a Comment