Search code examples
mmdrawercontroller

set multiple MMCloseDrawerGestureMode gestures


I am using MMDrawerController and I wish to set multiple closing gestures, anyone know if this is possible? If so how do I accomplish this?

Currently I am doing this:

 [destinationViewController setCloseDrawerGestureModeMask:MMCloseDrawerGestureModePanningCenterView];

Solution

  • Don't know if you still need help with this, but to set multiple closing gestures:

     [destinationViewController setCloseDrawerGestureModeMask:MMCloseDrawerGestureModePanningCenterView | MMCloseDrawerGestureModeTapCenterView];
    

    Add however many you wish