yqs

YQSlideMenController

仿QQ左边菜单侧滑栏,SlideMenu

Showing:

Popularity

Downloads/wk

0

GitHub Stars

53

Maintenance

Last Commit

5yrs ago

Contributors

1

Package

Dependencies

0

License

MIT

Categories

Readme

YQSlideMenuControllerDemo

仿QQ左边菜单侧滑栏  Swift版在这里 ###先上图(已换小图) gif

###使用

####导入 pod 'YQSlideMenController'

####初始化 self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

MainViewController *contentViewController = [[MainViewController alloc] initWithNibName:@"MainViewController" bundle:nil];
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:contentViewController];
LeftMenuController  *leftMenuViewController = [[LeftMenuController alloc] init];
YQSlideMenuController *sideMenuController = [[YQSlideMenuController alloc] initWithContentViewController:navigationController
                                                                leftMenuViewController:leftMenuViewController];
sideMenuController.backgroundImage = [UIImage imageNamed:@"slide_bg"];

self.window.rootViewController = sideMenuController;
self.window.backgroundColor = [UIColor whiteColor];
[self.window makeKeyAndVisible];

####菜单中显示新视图 [self.slideMenuController showViewController:viewController];

####任意VC中打开&关闭菜单

1. 导入
    #import <UIViewController+YQSlideMenu.h>
2. 调用
    [[self slideMenuController] showMenu];//打开菜单
    [[self slideMenuController] hideMenu];//关闭菜单

还有许多功能没有完善,有需求的客官烦请告知

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100