-1

i'm using ECSlidingViewController and i've a problem when using pan Gesture to open the sliding menu the tableview in the main view still have the scrolling gesture

i need to remove the gesture of the main view and add it back when it slide back

Cezar
  • 55,636
  • 19
  • 86
  • 87
Mohamed Emad Hegab
  • 2,665
  • 6
  • 39
  • 64

1 Answers1

0

in the InitViewController add the following method

- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer{
    return NO;
}

if return YES it will make the undesirable behavior

Mohamed Emad Hegab
  • 2,665
  • 6
  • 39
  • 64
  • What happens if you return `YES` here? Which gesture is this delegate method for? You might have to return `YES` for both the `panGesture` and the table's scroll gesture. – Michael Enriquez Nov 16 '13 at 16:24