All Projects → mengxianliang → Xlslidemenu

mengxianliang / Xlslidemenu

iOS 仿QQ的左右抽屉效果

Projects that are alternatives of or similar to Xlslidemenu

Drawer Behavior Flutter
Drawer behavior is a library that provide an extra behavior on drawer, such as, move view or scaling view's height while drawer on slide.
Stars: ✭ 110 (-9.84%)
Mutual labels:  menu, slide
SideMenuSwiftDemo
SideMenu in Swift with autolayout
Stars: ✭ 79 (-35.25%)
Mutual labels:  menu, sidemenu
Rhsidebuttons
Library provides easy to implement variation of Android (Material Design) Floating Action Button for iOS. You can use it as your app small side menu. 🌶
Stars: ✭ 164 (+34.43%)
Mutual labels:  menu, sidemenu
react-native-panel
A Customizable React Native Panel for Android and iOS
Stars: ✭ 35 (-71.31%)
Mutual labels:  slide, menu
Ybpopupmenu
快速集成popupMenu
Stars: ✭ 816 (+568.85%)
Mutual labels:  qq, menu
Duo Navigation Drawer
A flexible, easy to use, unique drawer library for your Android project.
Stars: ✭ 986 (+708.2%)
Mutual labels:  menu, slide
Side Menu.ios
Animated side menu with customizable UI
Stars: ✭ 2,702 (+2114.75%)
Mutual labels:  menu, sidemenu
CoolSlidingMenu
A powerful menu that you can customize it。
Stars: ✭ 25 (-79.51%)
Mutual labels:  slide, menu
Sidemenu
Simple side/slide menu control for iOS, no code necessary! Lots of customization. Add it to your project in 5 minutes or less.
Stars: ✭ 5,267 (+4217.21%)
Mutual labels:  menu, sidemenu
Fapanels
FAPanels - Swift
Stars: ✭ 850 (+596.72%)
Mutual labels:  menu, sidemenu
Fwsidemenu
侧滑控件:支持左、右滑动的侧滑菜单,可配置单侧滑动,同时可配置菜单宽度等,更多配置请参考”可设置参数“。参考了QQ用户体验:支持边缘侧滑,解决手势冲突问题(边缘范围可设置)。提供OC使用Demo。
Stars: ✭ 90 (-26.23%)
Mutual labels:  qq, sidemenu
Menu
A JavaScript free menu library for Blazor and Razor Components applications.
Stars: ✭ 118 (-3.28%)
Mutual labels:  menu
Sgtk Menu
GTK launchers for sway & other WMs w/ menu, dmenu, application grid and button bar
Stars: ✭ 112 (-8.2%)
Mutual labels:  menu
Deepin Wine Qq Arch
Tencent QQ on Deepin Wine5(com.qq.im.deepin) For Archlinux
Stars: ✭ 111 (-9.02%)
Mutual labels:  qq
Springactionmenu
This is a spring ActionMenu - 一个弹性的功能菜单
Stars: ✭ 120 (-1.64%)
Mutual labels:  menu
Sidenavigation
Simple side navitation control for iOS in Swift , Right and Left sides, Support iPad & Object-C
Stars: ✭ 117 (-4.1%)
Mutual labels:  sidemenu
Custom Reactjs Dropdown Components
Custom dropdown components for ReactJS
Stars: ✭ 110 (-9.84%)
Mutual labels:  menu
Lmsidebarcontroller
LMSideBarController is a simple side bar controller inspired by Tappy and Simon Hoang.
Stars: ✭ 108 (-11.48%)
Mutual labels:  sidemenu
Appintro
Make a cool intro for your Android app.
Stars: ✭ 9,989 (+8087.7%)
Mutual labels:  slide
Sheetmenu
Library for speedy implementation menu with BottomSheet
Stars: ✭ 121 (-0.82%)
Mutual labels:  menu

XLSlideMenu

实现功能

  • [x] 滑动显示左右菜单(支持快速滑动)
  • [x] 调用方法显示左右菜单
  • [x] 支持UINavigationController、UItabbarController,即UIViewController及其子类作为Window的根控制器
  • [x] 滑动区域为界面两侧,不会和界面中的滚动视图发生冲突,并可自定义相应区域大小
  • [x] 滑动只在NavigationController的个控制器显示时才会触发,其他自控制器不会触发菜单滑动方法

显示效果

示例图中的QQ界面只是截图

使用方法

1、创建方法:

(1)、导入头文件:

#import "XLSlideMenu.h"

(2)、创建菜单并设置成window的rootviewControler

XLSlideMenu *slideMenu = [[XLSlideMenu alloc] initWithRootViewController:rootNav];
//设置左右菜单
slideMenu.leftViewController = leftVC;
slideMenu.rightViewController = rightVC;
self.window.rootViewController = slideMenu;

2、使用方法:

(1)、显示左菜单

[self.xl_sldeMenu showLeftViewControllerAnimated:true];

(2)、显示右菜单

[self.xl_sldeMenu showRightViewControllerAnimated:true];

(3)、显示主界面

[self.xl_sldeMenu showRootViewControllerAnimated:true];

(4)、获取菜单宽度

self.xl_sldeMenu.menuWidth

(5)、获取留白宽度

self.xl_sldeMenu.emptyWidth

(6)、关闭滑动功能

self.xl_sldeMenu.slideEnabled = false;

(7)、跳转新界面

  • 判断RootViewController类型

  • 第一种情况:如果是UINavigationController就直接push

UINavigationController *nav = (UINavigationController *)self.xl_sldeMenu.rootViewController;
[nav pushViewController:newVc animated:false];
  • 第二种情况:如果是Tabbar就找到Tabbar的selectedViewController执行Push动作
UITabBarController *tabBarController = (UITabBarController *)self.xl_sldeMenu.rootViewController;
UINavigationController *nav = (UINavigationController *)tabBarController.selectedViewController;
[nav pushViewController:newVc animated:true];

个人开发过的UI工具集合 XLUIKit

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].