ios - UIPanGestureRecognizer at view with UIScrollView -


i have view uipangesturerecognizer.

uipangesturerecognizer *recognizer = [[uipangesturerecognizer alloc]                                           initwithtarget:self action:@selector(handlepan:)];     [recognizer setmaximumnumberoftouches:1];     [recognizer setdelegate:self];  [self.view addgesturerecognizer: recognizer];  ======= -(void) handlepan:(uipangesturerecognizer*)gesturerecognizer {   move subview of self.view } 

subview have scroll view inside. how capture gesture event -handlepan: when scroll view @ end of horizontal scrolling?

enter image description here

you can use following function:

- (bool)gesturerecognizer:(uigesturerecognizer *)gesturerecognizer shouldrecognizesimultaneouslywithgesturerecognizer:(uigesturerecognizer *)othergesturerecognizer 

Comments

Popular posts from this blog

asp.net mvc - Cannot display error message on Editor or EditorFor -

Reliable way to get Windows Version from registry -

python - No exponential form of the z-axis in matplotlib-3D-plots -