iOS 侧滑菜单:YSHYSlideController

jopen 9年前

这是一个实现侧滑菜单的小 demo,只需进行简单的配置就可实现侧滑的菜单的效果 

点击的菜单可以跳转到对应的 Controller 中

但是目前还不支持自定义menu 后续我会继续修改更新

import "YSHYSlideViewController.h"  import "LeftMenuController.h"  - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    self.window = [[UIWindow alloc]initWithFrame:[[UIScreen mainScreen] bounds]];    //设置菜单Controller    LeftMenuController * leftMenu = [[LeftMenuController alloc]init];    [YSHYSlideViewController shareInstance].leftMenu = leftMenu;    //设置mainController    UIViewController * mainController = [[UIViewController alloc]init];    [[YSHYSlideViewController shareInstance] setMainViewController:mainController];    self.window.rootViewController = [YSHYSlideViewController shareInstance];    [self.window makeKeyAndVisible];    return YES;    }

iOS 侧滑菜单:YSHYSlideController

项目主页:http://www.open-open.com/lib/view/home/1446534022701