Reputation: 12034
I'm using the side menu jonkykong/SideMenu, the implementation is ok, but I have two roles in the application and some options are different to each one.
Well, I was thinking to write all the options in the menu and hide the no-necessary of them.
Someone has idea about how I can hide some options from my ViewController
???
Basically, the Left Menu
has defined the class SideMenuTableView
and each ellement is defined by a UITableViewVibrantCell
Upvotes: 0
Views: 884
Reputation: 2360
Don't have an complete idea of your code, but this might be rather simple.
If you are using a UITableView, why can't you just update the datasource and reload the menu table. Or even have two different arrays of them
Or the other way around it would be handling the items in height tableView(:heightForRowAt:)
method. By setting the height 0 you can hide them.
With SideMenu you can also change your MenuViewController at runtime using SideMenuManager.menuLeftNavigationController = newMenuController
, so that could be your last resort.
Upvotes: 1