iOS-Slide-Menu
iOS-Slide-Menu copied to clipboard
Change left menu
Hi, according to my user type, when logging, i have to show different "leftMenu". So, when the user1 login, should be show leftMenu1. When the user1 logout, and the user2 login, should show leftMenu2. leftMenu1 and leftMenu2 are differents TableViewControllers. When user1 login, works fine. After, user1 logout and user2 login, but, the leftmenu show me the leftmenu1 (from user1) and when i tap on it, the screen hides.
Can help me?
Will add this with a demo to the next release
Hi,
When i set menu multiple time then menu view blank. can you please help me?
Thanks!
anyone solution for this..i have the same problem..page shows black only..
I have the same problem too
More precisely:
- I first set the right menu to ViewController1
- I update it with a new instance of ViewController1 or an instance of ViewController2
- the right menu is an empty black background
i have the same problem. page shows black after set new view controller. whether it be repaired? thanks.
Does anybody know any solution for this?
Not great fix but it is fine for me: You could comment out those lines:
if (self.lastRevealedMenu && menu == self.lastRevealedMenu)
return;
in - (void)prepareMenuForReveal:(Menu)menu
That is solving this for the case like this too: open left menu, hide it, change/update it even with the same instance and then open left menu again.
I think the main problem here is that setting again the same menu (left in my case) is removing the view. Then - (void)prepareMenuForReveal:(Menu)menu
is checking if we are preparing the same menu (and we are because self.lastRevealedMenu == menu) and it is not inserting new view to the window/superview (depends if you are using forked version or not). In that case it might be fixed in better way by checking that situation if left/right menu is really the same left/right menu but is fine for me (even in situation that it will be preparing that menu all the time) and I have this in my fork.
Stiil there is same Issue. As it show Black Page instead of leftMenu. Strange
@luc3k Thank You
it's working amazing i m trying so far to achieve that. 💯 👍
@luc3k thank you! you solved my problem:)