This code is broken, because it never triggers the viewwillAppear or the viewwilldissappear original methods, why would you enable the pan if the programmer has already disable it??
how can i fix this???
(void)my_viewWillAppear:(BOOL)animated
{
// Additional code Here
// Call original viewWillAppear method
[self my_viewWillAppear:animated];
}
(void)my_viewWillDisappear:(BOOL)animated
{
// Additional code Here
// Enabling pan gesture for left and right menus
AMSlideMenuMainViewController *mainVC = [AMSlideMenuMainViewController getInstanceForVC:self];
mainVC.leftPanDisabled = NO;
mainVC.rightPanDisabled = NO;
// Call original viewWillDisappear method
[self my_viewWillDisappear:animated];
}
This code is broken, because it never triggers the viewwillAppear or the viewwilldissappear original methods, why would you enable the pan if the programmer has already disable it??
how can i fix this???
(void)my_viewWillAppear:(BOOL)animated { // Additional code Here
// Call original viewWillAppear method [self my_viewWillAppear:animated]; }
(void)my_viewWillDisappear:(BOOL)animated { // Additional code Here
// Enabling pan gesture for left and right menus AMSlideMenuMainViewController *mainVC = [AMSlideMenuMainViewController getInstanceForVC:self]; mainVC.leftPanDisabled = NO; mainVC.rightPanDisabled = NO;
// Call original viewWillDisappear method [self my_viewWillDisappear:animated]; }