Skip to content

OC Swift 简易集成侧拉菜单控制器 XYSideViewController

License

Notifications You must be signed in to change notification settings

HeathHsia/XYSideViewController

Repository files navigation

XYSideViewController

platform Language version blog License

XYSideViewController

一个侧拉菜单控制器(仿QQ侧拉栏)

Email : [email protected]

欢迎邮件 欢迎Star

demoGif

Installation

  1. 直接将XYSideViewController文件夹放入到工程即可使用

  2. cocopods

pod 'XYSideViewController', '~> 1.0.2'

OC版本

  1. 初始化XYSideViewController作为window.rootViewController

    XYSideViewController *rootViewController = [[XYSideViewController alloc] initWithSideVC:leftViewController currentVC:tabBarViewController];
    self.window.rootViewController = rootViewController;
    
    • SideVC : 左侧控制器

    • currentVC : 主控制器

  2. 侧拉栏属性

    • sideContentOffset

      • 可侧拉最大偏移量

      • 默认值: 3/4 * 屏幕宽

    • currentVCPanEnableRange

      • pan侧拉手势范围

      • 默认值: 50

    • isSide

      • 侧拉开关

      • 默认值: 开启

    • currentNavController

      • 获取主VC当前的导航控制器
    • (void)closeSideVC

      • 关闭侧拉栏
    • (void)openSideVC

      • 打开侧拉栏
  3. UIViewController+XYSideCategory

    • sideViewController

      • 获取侧拉控制器
    • - (void)XYSidePushViewController:(UIViewController *)viewController animated:(BOOL)animated

      • 左侧控制器push
    • - (void)XYSideOpenVC

      • 打开侧拉栏

Swift版本

Loading

About

OC Swift 简易集成侧拉菜单控制器 XYSideViewController

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published