Detect when the drawer is closed while using MMDrawerController
问题 Is there any way we can detect when the drawer is closed by dragging the center container? I wish to perform certain actions everytime the drawer is closed.. 回答1: You can use -(void)setGestureCompletionBlock:(void(^)(MMDrawerController * drawerController, UIGestureRecognizer * gesture))gestureCompletionBlock; to set a callback block to be notified when a gesture is completed. In this block, query the drawerController to know what is currently open. /** Sets a callback to be called when a