John-Lluch / SWRevealViewController

A UIViewController subclass for presenting side view controllers inspired on the FaceBook and Wunderlist apps, done right !
Other
4.52k stars 988 forks source link

how to set two or more menu view controller ?? #535

Open subhash08 opened 8 years ago

subhash08 commented 8 years ago

I want to add two menu with different UI, which is based on the user type. If user X is on, then show the Menu X and if User Y is on, Show Menu Y. any Idea how to implement it with SWRevealViewController ??

iDevelopper commented 8 years ago

SWRevealViewController or not : it is the same way. If your menu is a UITableViewController test witch user is connected in the viewWillAppear method and populate your datasource consequently before reload the data of the tableview.

subhash08 commented 8 years ago

@iDevelopper I'm not using table view, Im using two different view controller to be shown as menu. then how to show different menu ?

iDevelopper commented 8 years ago

You should change the rearViewController then by using setRearViewController:animated

subhash08 commented 8 years ago

@iDevelopper not working showing black screen nothing else

iDevelopper commented 8 years ago

Could you post a sample project?