Tap gesture for navigation controller in iOS (MMDrawerController)

114 Views Asked by At

I am building an app for that I have used MMDrawerController as my slide navigation controller.

I have gone through their documentation but did not find any code specific to gestures as such. Can you help me out over here.

1

There are 1 best solutions below

0
Tien-Nvan On
  1. Your can add UITapGestureRecognizer to navigationBar with UIGestureRecognizerDelegate of gesture in controller. Overrive func gestureRecognizerShouldBegin, then calculator size than can executive tap gesture (ignore left, right bar item) -> Reture true
  2. Custom title of navigationBar with: navigationItem.titleView = otherView and add action to this view