项目介绍:
QQMenu
QQ侧滑菜单,右滑菜单,QQ展开菜单,QQ好友分组
https://github.com/Zws-China/QQMenu
如果觉得对你还有些用,给一颗star吧。你的支持是我继续的动力。
PhotoShoot
How To Use
//右滑菜单
//侧滑菜单使用的是MMDrawerController框架
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
LeftController *leftVC = [[LeftController alloc] init];
UINavigationController *centerNav = [[UINavigationController alloc] initWithRootViewController:[[CenterController alloc] init]];
centerNav.navigationBar.titleTextAttributes = @{NSForegroundColorAttributeName: [UIColor whiteColor]};
centerNav.navigationBar.tintColor = [UIColor whiteColor];
centerNav.navigationBar.barTintColor = [UIColor colorWithRed:44/255.0 green:185/255.0 blue:176/255.0 alpha:1];
self.drawerController = [[MMDrawerController alloc]initWithCenterViewController:centerNav leftDrawerViewController:leftVC];
[self.drawerController setShowsShadow:YES];
[self.drawerController setMaximumLeftDrawerWidth:kScreenWidth-100];
[self.drawerController setOpenDrawerGestureModeMask:MMOpenDrawerGestureModeAll];
[self.drawerController setCloseDrawerGestureModeMask:MMCloseDrawerGestureModeAll];
[self.drawerController setDrawerVisualStateBlock:^(MMDrawerController *drawerController, MMDrawerSide drawerSide, CGFloat percentVisible) {
MMDrawerControllerDrawerVisualStateBlock block;
block = [[MMExampleDrawerVisualStateManager sharedManager]
drawerVisualStateBlockForDrawerSide:drawerSide];
if(block){
block(drawerController, drawerSide, percentVisible);
}
}];//侧滑效果
self.window.backgroundColor = [UIColor whiteColor];
[self.window setRootViewController:self.drawerController];
return YES;
}