MainTabBarViewController *mainCtrl = [[MainTabBarViewController alloc] init];
LeftViewController *leftMenuViewController = [[LeftViewController alloc] init];
//DEMORightMenuViewController *rightMenuViewController = [[DEMORightMenuViewController alloc] init];
// Create side menu controller
//
RESideMenu *sideMenuViewController = [[RESideMenu alloc] initWithContentViewController:mainCtrl
leftMenuViewController:leftMenuViewController
rightMenuViewController:nil];
sideMenuViewController.backgroundImage = [UIImage imageNamed:@"Stars"];
sideMenuViewController.scaleMenuView = NO;
sideMenuViewController.panGestureEnabled = YES;
sideMenuViewController.panFromEdge = NO;
sideMenuViewController.scaleContentView = NO;
mainCtrl.sideMenuViewController = sideMenuViewController;
// Make it a root controller
//
self.window.rootViewController = sideMenuViewController;
github: https://github.com/romaonthego/RESideMenu