Tsnow308 / QQMenu

侧滑菜单,侧滑,QQ侧滑菜单,左边菜单

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

QQMenu

QQ侧滑菜单,右滑菜单,QQ展开菜单,QQ好友分组

GitHub: https://github.com/Zws-China/QQMenu
如果觉得对你还有些用,给一颗star吧。你的支持是我继续的动力。

PhotoShoot

0

1

2

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;
}

About

侧滑菜单,侧滑,QQ侧滑菜单,左边菜单


Languages

Language:Objective-C 100.0%