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?
you can use following function:
- (bool)gesturerecognizer:(uigesturerecognizer *)gesturerecognizer shouldrecognizesimultaneouslywithgesturerecognizer:(uigesturerecognizer *)othergesturerecognizer
Comments
Post a Comment