- (void) viewDidAppear:(BOOL)animated{
[super viewDidAppear:animated];
MMDrawerController * drawerController = (TM_APPDELEGATE).drawerController;
self.navigationController.interactivePopGestureRecognizer.enabled = YES;
[drawerController setOpenDrawerGestureModeMask:MMOpenDrawerGestureModeNone];
[drawerController setCloseDrawerGestureModeMask:MMCloseDrawerGestureModeNone];
}
-(void)viewDidDisappear:(BOOL)animated
{
self.navigationController.interactivePopGestureRecognizer.enabled = NO;
//设置打开抽屉模式 这里要设置抽屉的打开和关闭,不能单一设置打开,不然就回不去了
MMDrawerController * drawerController = (TM_APPDELEGATE).drawerController;
[drawerController setOpenDrawerGestureModeMask:MMOpenDrawerGestureModeAll];
[drawerController setCloseDrawerGestureModeMask:MMCloseDrawerGestureModeAll];
[super viewDidDisappear:animated];
}