All Projects → liugangios → Ifmmenu

liugangios / Ifmmenu

Licence: mit
仿微信添加菜单

Projects that are alternatives of or similar to Ifmmenu

Dropdownmenu
DropDownMenu for Android,Filter the list based on multiple condition.
Stars: ✭ 815 (+246.81%)
Mutual labels:  menu, dropdown
React Dropdown Select
Customisable dropdown select for react
Stars: ✭ 227 (-3.4%)
Mutual labels:  menu, dropdown
Kpdropmenu
KPDropMenu is an Objective-C port of HADropDown With Additional features
Stars: ✭ 50 (-78.72%)
Mutual labels:  menu, dropdown
react-native-panel
A Customizable React Native Panel for Android and iOS
Stars: ✭ 35 (-85.11%)
Mutual labels:  dropdown, menu
Custom Reactjs Dropdown Components
Custom dropdown components for ReactJS
Stars: ✭ 110 (-53.19%)
Mutual labels:  menu, dropdown
Vue Stripe Menu
Creating a navigation menu with animations like on Stripe
Stars: ✭ 266 (+13.19%)
Mutual labels:  menu, dropdown
Ember Select Box
🔠 A faux select box for Ember apps
Stars: ✭ 60 (-74.47%)
Mutual labels:  menu, dropdown
react-native-select-pro
React Native dropdown (select) component developed by Mobile Reality
Stars: ✭ 79 (-66.38%)
Mutual labels:  dropdown, menu
Yndropdownmenu
✨ Awesome Dropdown menu for iOS with Swift 5.0
Stars: ✭ 1,259 (+435.74%)
Mutual labels:  menu, dropdown
Igldropdownmenu
An iOS drop down menu with pretty animation and easy to customize.
Stars: ✭ 1,218 (+418.3%)
Mutual labels:  menu, dropdown
Azdropdownmenu
A simple dropdown menu component for iPhone
Stars: ✭ 198 (-15.74%)
Mutual labels:  menu, dropdown
Dopdropdownmenu Enhanced
DOPDropDownMenu 添加双列表 优化版 新增图片支持(double tableView, The optimization version ,new add image,detailText)
Stars: ✭ 1,757 (+647.66%)
Mutual labels:  menu, dropdown
Menu
The most customizable menu for macOS apps.
Stars: ✭ 84 (-64.26%)
Mutual labels:  dropdown, menu
Easydropdown
A lightweight library for building beautiful styleable <select> elements
Stars: ✭ 337 (+43.4%)
Mutual labels:  menu, dropdown
Accordion
Silky-smooth accordion widgets with no external dependencies.
Stars: ✭ 32 (-86.38%)
Mutual labels:  dropdown, menu
Tippyjs React
React component for Tippy.js (official)
Stars: ✭ 1,081 (+360%)
Mutual labels:  menu, dropdown
clicky-menus
Simple click-triggered navigation submenus. Accessible and progressively enhanced.
Stars: ✭ 76 (-67.66%)
Mutual labels:  dropdown, menu
ContextMenuSwift
A better version of iOS 13 Context Menu
Stars: ✭ 162 (-31.06%)
Mutual labels:  dropdown, menu
Tippyjs
Tooltip, popover, dropdown, and menu library
Stars: ✭ 9,433 (+3914.04%)
Mutual labels:  menu, dropdown
Bootstrap Dropdown Hover
Bootstrap based responsive mulltilevel dropdown navigation menu with fascinating animations
Stars: ✭ 115 (-51.06%)
Mutual labels:  menu, dropdown

IFMMenu

仿微信首页添加菜单

Demo展示

展示图

GIF展示

动图.gif

安装

CocoaPods

  1. Podfile 中添加 pod 'IFMMenu'
  2. 执行 pod installpod update
  3. 导入 <IFMMenu/IFMMenu.h>

手动安装

  1. 下载IFMMenu文件夹内的所有内容。
  2. IFMMenu内的源文件添加(拖放)到你的工程。
  3. 导入IFMMenu.h

使用

NSMutableArray *menuItems = [[NSMutableArray alloc] initWithObjects:
                                 
         [IFMMenuItem itemWithImage:[UIImage imageNamed:@"address_icon_share"]
                              title:@"分享一下"
                             action:^(IFMMenuItem *item) {
                                 NSLog(@"分享一下");
                             }],
         [IFMMenuItem itemWithImage:[UIImage imageNamed:@"address_icon_modify"]
                              title:@"关注一下"
                             action:^(IFMMenuItem *item) {
                                 NSLog(@"关注一下");
                             }], nil];
    
IFMMenu *menu = [[IFMMenu alloc] initWithItems:menuItems];

[menu showFromRect:sender.frame inView:self.view];

除了这种展示方法,还提供了从导航栏和TabBar弹出的方法

[menu showFromNavigationController:self.navigationController WithX:100];
[menu showFromTabBarController:self.tabBarController WithX:100];

个性化设置

支持弹出框的多种自定义设置

menu.menuBackgroundStyle = IFMMenuBackgroundStyleLight; //menu样式
menu.edgeInsets = UIEdgeInsetsMake(30, 20, 50, 10); //下拉框的内边距
menu.gapBetweenImageTitle = 50; //图片和标题间距
menu.arrowHight = 20;   //指向控件的箭头的高度
menu.menuBackGroundColor = [UIColor orangeColor];   //背景颜色
menu.minMenuItemHeight = 45;    //Item最小高度
menu.minMenuItemWidth = 100;    //Item最小宽度
menu.titleFont = [UIFont systemFontOfSize:20];  //Item字体
menu.segmenteLineColor = [UIColor blueColor];   //分割线颜色
menu.titleColor = [UIColor greenColor]; //Item颜色
menu.menuSegmenteLineStyle = IFMMenuSegmenteLineStyleFill;  //分割线类型
menu.menuCornerRadiu = 20;  //menu的圆角大小
menu.showShadow = NO;   //是否显示阴影
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].