ChrisSamuelson is right about the unwind segue.
As for the pan gesture, you add it using UIView
's addGestureRecognizer:
.
[self.slidingViewController.topViewController.view addGestureRecognizer:self.slidingViewController.panGesture]
You may need to add it to another view in the hierarchy, it depends on how your topViewController
is setup and where you want the panning to be enabled.
To support swiping and tapping to reset the top view, make sure you configure sliding view controller like this
self.slidingViewController.topViewAnchoredGesture = ECSlidingViewControllerAnchoredGestureTapping | ECSlidingViewControllerAnchoredGesturePanning;