欢迎光临
我们一直在努力

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

建站超值云服务器,限时71元/月

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

项目介绍:

QQMenu

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

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

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » QQ侧滑菜单,右滑菜单,QQ展开菜单,QQ好友分组
分享到: 更多 (0)