RESideMenu一次试用感觉还不错.

https://github.com/romaonthego/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;

据说如果屏幕抖动,设置
把这个parallaxEnabled设置为no,就可以了

你可能感兴趣的:(RESideMenu一次试用感觉还不错.)