I’m using ECSlidingViewController in my application, it contains owns GestureRecognizer that looks like:
[self.view addGestureRecognizer:self.slidingViewController.panGesture];
And it’s preventing TableView’s scrolling. When I deleted that line scroll works fine. What’s wrong with my approach?
Note: TableView is a part of Navigation Controller. And I’m using StoryBoards.
You need to add the
UIGestureRecognizerto the view of theUINavigationController, not the theUITableView.One way to do this is to create a
UINavigationControllersubclass that handles the creation of both the gesture recognizer and the instantiation of your underLeft (or underRight) view controller for the ECSlidingViewController:Open the Storyboard Editor, select the navigation controller and set the Identity Inspector’s Custom Class field to
MyNavigationController(rather than the defaultUINavigationController).