ios - Handling multiple gestures simultaneously -
i have 2 subviews view1 , view2. have added longpress , pan gesture parentview. when longpress on view1, present draggableview popup animation below fingure , continue dragging dragview view2. in process pangesture selector not called longpress gesture selector called. after remove fingure dragview , start dragging again pangesture selector called.
what need is, once dragview created, disable(not permanently until pan gesture state ended called) longpress gesture , pan gesture selector should called
you have delegate method called:
- (bool)gesturerecognizer:(uigesturerecognizer *)gesturerecognizer shouldrecognizesimultaneouslywithgesturerecognizer:(uigesturerecognizer *)othergesturerecognizer
take @ it, need return yes.