aryaxt / iOS-Slide-Menu

iOS Slide Menu with ability to add both left and right menu, and built in gesture recognizer. Similar to Path and Facebook
Other
1.53k stars 359 forks source link

Black Screen #170

Open nikhilkhekade opened 9 years ago

nikhilkhekade commented 9 years ago

Hi

I have a two sets of flows in main story board. One which uses slide menu & other doesnt. Both flows have a button to switch from one flow to another. When I switch for the first time, I can see the menu. But when when I go to second flow & then back to first flow I cant see the menu only black screen. Also when i checked SlideNavigationControllerDidOpen is getting called but the menu is black.

Nikhil

julianacipa commented 9 years ago

I have exactly the same problem

julianacipa commented 9 years ago

My problem was that I was reinstantiating the rootview controller of the slide menu programatically. Just saying: [[SlideNavigationController sharedInstance] popToRootViewControllerAnimated:NO]; worked for me

aryaxt commented 9 years ago

There is also popAllAndSwitchToViewController if you want to replace the entire stack with a new one.

Use side menu for both flows (SlideNavigationController), don't enable menu functionality on viewcontrollers you don't want (your other flow) and it would simply behave like a regular navigation controller

julianacipa commented 9 years ago

I had the problem when I used popAllAndSwitchToViewController only in the case of going to the rootViewConroller of the slider.

SCLDev commented 8 years ago

I used the popAll... and it works better for me because using the popToRoot leaves the chevron in the newly presented view.

nagurbee commented 6 years ago

HI, I am using two different storyboards first time app login showing one storyboard and remaning times showing another storyboard.. when i run app first time menu getting black screen after relaunch app it getting data.. Can you please slove my issuse.. Thanks in advance.