Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change left menu #93

Open
thiagovargas opened this issue Nov 14, 2014 · 10 comments
Open

Change left menu #93

thiagovargas opened this issue Nov 14, 2014 · 10 comments
Assignees

Comments

@thiagovargas
Copy link

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?

@aryaxt
Copy link
Owner

aryaxt commented Nov 28, 2014

Will add this with a demo to the next release

@aryaxt aryaxt self-assigned this Nov 28, 2014
@aryaxt aryaxt added the 1.4.4 label Nov 28, 2014
@aryaxt aryaxt closed this as completed in f2d50da Nov 28, 2014
@maldechavda
Copy link

Hi,

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

Thanks!

@karthisiva
Copy link

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

@PasqualePuzio
Copy link

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

@aryaxt aryaxt reopened this Jun 26, 2015
@minardid
Copy link

minardid commented Oct 7, 2015

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

@ironzep
Copy link

ironzep commented Oct 27, 2015

Does anybody know any solution for this?

@luc3k
Copy link

luc3k commented Nov 11, 2015

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.

@MadBurea
Copy link

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

@MadBurea
Copy link

@luc3k Thank You

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

@dhekrazaied
Copy link

@luc3k thank you! you solved my problem:)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants