iOS-Slide-Menu icon indicating copy to clipboard operation
iOS-Slide-Menu copied to clipboard

Change left menu

Open thiagovargas opened this issue 9 years ago • 10 comments

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?

thiagovargas avatar Nov 14 '14 14:11 thiagovargas

Will add this with a demo to the next release

aryaxt avatar Nov 28 '14 20:11 aryaxt

Hi,

When i set menu multiple time then menu view blank. can you please help me?

Thanks!

maldechavda avatar Dec 17 '14 10:12 maldechavda

anyone solution for this..i have the same problem..page shows black only..

karthisiva avatar May 11 '15 10:05 karthisiva

I have the same problem too

More precisely:

  1. I first set the right menu to ViewController1
  2. I update it with a new instance of ViewController1 or an instance of ViewController2
  3. the right menu is an empty black background

PasqualePuzio avatar Jun 26 '15 00:06 PasqualePuzio

i have the same problem. page shows black after set new view controller. whether it be repaired? thanks.

minardid avatar Oct 07 '15 07:10 minardid

Does anybody know any solution for this?

ironzep avatar Oct 27 '15 02:10 ironzep

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.

luc3k avatar Nov 11 '15 11:11 luc3k

Stiil there is same Issue. As it show Black Page instead of leftMenu. Strange

MadBurea avatar Nov 24 '16 13:11 MadBurea

@luc3k Thank You

it's working amazing i m trying so far to achieve that. 💯 👍

MadBurea avatar Nov 24 '16 13:11 MadBurea

@luc3k thank you! you solved my problem:)

dhekrazaied avatar Jan 10 '19 07:01 dhekrazaied