Can I have two ECSlidingViewController Drawer from left and right?

102 Views Asked by At

I want to have two Drawer menus, one from left another from the right. Is it possible using ECSlidingViewController 2. If no then can you suggest the better way to achieve the same?

2

There are 2 best solutions below

4
On BEST ANSWER

Check out this library RESideMenu is it very easy and have left and right menus

Here is a sample code

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    UIViewController *firstViewController;// initial view controller
    UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:firstViewController]];
    UIViewController *leftMenuViewController; // your left menu
    UIViewController *rightMenuViewController; // your right menu
    RESideMenu *sideMenuViewController = [[RESideMenu alloc] initWithContentViewController:navigationController
                                                                    leftMenuViewController:leftMenuViewController
                                                                   rightMenuViewController:rightMenuViewController];

    sideMenuViewController.backgroundImage = [UIImage imageNamed:@"Stars"];
    [self.window makeKeyAndVisible];
    return YES;
}
0
On

You can use MFSideMenu too. It is also a very simple library to implement.

The git link is https://github.com/mikefrederick/MFSideMenu

I have made a video too regarding this

https://www.youtube.com/watch?v=2kuhBOTdx00

Here I have set left and central, you can set right side menu too.