I added swrevealcontroller to my application. When you click an item in the table, a new view controller opens. I added pageControl to this controller. The first time the hard arrow of the pagecontrol works, but the next time the hard arrow does not work to control the page. Please tell me how I can avoid clashing pan gestures.
- (void)_handleRevealGesture:(UIPanGestureRecognizer *)recognizer { NSLog(@"handle pan gesture"); CGPoint velocity = [recognizer velocityInView:self.view]; if(velocity.x > 0) { NSLog(@"gesture went right"); } else { NSLog(@"gesture went left"); if(self.isReaveled) { switch ( recognizer.state ) { case UIGestureRecognizerStateBegan: [self _handleRevealGestureStateBeganWithRecognizer:recognizer]; break; case UIGestureRecognizerStateChanged: [self _handleRevealGestureStateChangedWithRecognizer:recognizer]; break; case UIGestureRecognizerStateEnded: [self _handleRevealGestureStateEndedWithRecognizer:recognizer]; break; case UIGestureRecognizerStateCancelled:
I modified the above code to work, but it does not work.
source share