IOS slide menu. When calling viewController buttons on current viewController no longer work
I am using the iOS-Slide-Menu aryaxt module. In my project, the entire library is working as expected except for one thing. I have an initial view A in my SlideNavigationController that contains a button. When you click on the button, it clicks on viewController B. In the menu, I have a button that does the same by clicking viewController B on top of A.
Scenario 1: The application starts, appears. I click on the viewController A button and viewController B is clicked. When you click on Back, B will appear, and viewController A appears. When you click on the B button, it is clicked and so on. Everything works fine.
Scenario 2: The application appears, A. appears. I select the menu and press the menu button that pushes B. Works great. When I click on Back, viewController A appears. Now, when I click on the viewController A button, nothing happens. The button just won't do anything. Funny thing ... when I slide down the menu and again, the button works again.
In scenario 2, I use the following code to push the viewController:
[[SlideNavigationController sharedInstance] popToRootAndSwitchToViewController:vc
withSlideOutAnimation:self.slideOutAnimationEnabled
andCompletion:nil];
This produces the effect just described.
When used just [[SlideNavigationController sharedInstance] pushViewController:vc animated:NO];
instead of the code above, everything works fine.
In scenario 1, I only have a push button from a button to view controller B in InterfaceBuilder.
I really don't know what the problem is as I have basically the same configuration as the example project at https://github.com/aryaxt/iOS-Slide-Menu
Any help is appreciated.
source to share
No one has answered this question yet
Check out similar questions: