Skip to content

Zws-China/QQMenu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

QQMenu

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

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

PhotoShoot

0

1

2

How To Use

//右滑菜单
//侧滑菜单使用的是MMDrawerController框架,在此感谢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侧滑菜单,左边菜单

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published