侧滑RESideMenu的使用

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

posted @ 2016-01-17 14:33  Rinpe  阅读(263)  评论(0编辑  收藏  举报