- (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;
? ? //設置打開抽屜模式? 這里要設置抽屜的打開和關(guān)閉茴丰,不能單一設置打開伐厌,不然就回不去了
? ? MMDrawerController * drawerController = (TM_APPDELEGATE).drawerController;
? ? [drawerController setOpenDrawerGestureModeMask:MMOpenDrawerGestureModeAll];
? ? [drawerController setCloseDrawerGestureModeMask:MMCloseDrawerGestureModeAll];
? ? [super viewDidDisappear:animated];
}