All Projects → eejahromi → EEJSelectMenu

eejahromi / EEJSelectMenu

Licence: MIT license
Single selection menu with cool animations

Programming Languages

objective c
16641 projects - #2 most used programming language
shell
77523 projects
ruby
36898 projects - #4 most used programming language
swift
15916 projects

Projects that are alternatives of or similar to EEJSelectMenu

SideMenuSwiftDemo
SideMenu in Swift with autolayout
Stars: ✭ 79 (+243.48%)
Mutual labels:  menu
godot-radial-menu
A radial menu for Godot, supports Mobile & Desktop
Stars: ✭ 88 (+282.61%)
Mutual labels:  menu
ListEx
List control with innate tool-tips, color, sorting, embedded hyperlinks, sub-item custom data, column hiding and lot more abilities.
Stars: ✭ 17 (-26.09%)
Mutual labels:  menu
vue-nested-menu
A simple hands-on mobile nested menu UI component with a smooth slide animation
Stars: ✭ 34 (+47.83%)
Mutual labels:  menu
ContextMenuSwift
A better version of iOS 13 Context Menu
Stars: ✭ 162 (+604.35%)
Mutual labels:  menu
toggle-menu
支持4个方位的按钮弹出菜单
Stars: ✭ 49 (+113.04%)
Mutual labels:  menu
clicky-menus
Simple click-triggered navigation submenus. Accessible and progressively enhanced.
Stars: ✭ 76 (+230.43%)
Mutual labels:  menu
menuv
FiveM menu library for creating menu's with NUI
Stars: ✭ 85 (+269.57%)
Mutual labels:  menu
AnimationMenu
Animation Menu like on Material Design way
Stars: ✭ 49 (+113.04%)
Mutual labels:  menu
XperiaServiceMenu
An Android app that allows owners of a Sony Xperia, to easily open the service menu app via a tap of a button instead of having to type a code into the phone's dialer.
Stars: ✭ 14 (-39.13%)
Mutual labels:  menu
xMenuTools
Extended context menu tools for Windows
Stars: ✭ 56 (+143.48%)
Mutual labels:  menu
vue3-context-menu
A very simple context menu component for Vue3 一个简洁美观简单的Vue3右键菜单组件
Stars: ✭ 74 (+221.74%)
Mutual labels:  menu
KActionMenu
Like to iOS 3D touch menu
Stars: ✭ 21 (-8.7%)
Mutual labels:  menu
nativescript-menu
A plugin that adds a pop-up menu to NativeScript
Stars: ✭ 17 (-26.09%)
Mutual labels:  menu
flutter-package-selection menu
A flutter widget, highly customizable, to select an item from a list of items.
Stars: ✭ 32 (+39.13%)
Mutual labels:  menu
TipMenu
仿QQ长按弹出复制、删除、分享提示层
Stars: ✭ 20 (-13.04%)
Mutual labels:  menu
vue-bottom-navigation
Vue bottom navigation
Stars: ✭ 56 (+143.48%)
Mutual labels:  menu
MD Menu
Menu system for displays with up to 2 lines
Stars: ✭ 49 (+113.04%)
Mutual labels:  menu
oxygen-responsive-menu
A plugin that combines Superfish + StudioPress' ResponsiveMenus.js + CSS-animated hamburger for a responsive menu in WordPress.
Stars: ✭ 29 (+26.09%)
Mutual labels:  menu
CircleButtonMenu
No description or website provided.
Stars: ✭ 28 (+21.74%)
Mutual labels:  menu

EEJSelectMenu

EEJSelectMenu is a responsive single selection menu for iOS.
Project allows for implementing a menu with different number of buttons and different animations for appearance.
It will adjust the button sizes based on the device screen size!
Just provide the names for the buttons and the menu will take care of the number and layout of the buttons!

Demo

Animation: FadeIn & Widen

Animation: Scale & MoveInFromLeft

Animation: MoveInFromRight & Alternate

Version 1.1.1

Installation

Using CocoaPods

EEJSelectMenu is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'EEJSelectMenu'

Using Source Files

Add the files in the Classes/ folder to your project

Import the header file to your source code

#import "EEJSelectMenu.h"

Getting Started

Note: 🔶 To use EEJSelectMenu in your Swift project add use_frameworks! to your Podfile or checkout these simple steps to create a bridging header and get you started. 🔶
  • Initializers
    • -initWithButtons:animationStyle:color:andDelegate:
    • -initWithButtons:animationStyle:colors:

Create an instance of EEJSelectMenu and provide button names and color

    NSArray *buttonNames = @[@"ONE",@"TWO",@"THREE",@"FOUR"];
    EEJSelectMenu *menu = [[EEJSelectMenu alloc]initWithButtons:buttonNames
                                                 animationStyle:EEJAnimationStyleFadeIn
                                                          color:[UIColor darkGrayColor] 
                                                          andDelegate:self];
    [self presentViewController:menu animated:NO completion:nil];

For Multi-Color menu use this initializer

    NSArray *buttonNames = @[@"ONE",@"TWO",@"THREE",@"FOUR"];
    EEJSelectMenu *menu = [[EEJSelectMenu alloc]initWithButtons:buttonNames
                                                 animationStyle:EEJAnimationStyleFadeIn
                                                    colors:@[[UIColor redColor],[UIColor greenColor]
                                                        [UIColor blueColor],[UIColor orangeColor]] ];
    menu.delegate = self;
                                                          
    [self presentViewController:menu animated:NO completion:nil];

Or simple initializer with the default color

    EEJSelectMenu *menu = [[EEJSelectMenu alloc]init];
    menu.buttonNames = @[@"ONE",@"TWO",@"THREE",@"FOUR"];
    menu.animationStyle = EJAnimationStyleAlternate;
    menu.delegate = self;
    // default color is light blue
    
    [self presentViewController:menu animated:NO completion:nil];
Note: for smoother animation set the animated property to "NO" when presenting the menu as shown above.

AnimationStyle

    menu.animationStyle = EJAnimationStyleFadeIn; // default
  • Other AnimationStyles Available:
    • EJAnimationStyleWiden
    • EJAnimationStyleScale
    • EJAnimationStyleMoveInFromLeft
    • EJAnimationStyleMoveInFromRight
    • EJAnimationStyleAlternate

Delegate Methods

EEJSelectMenu provides two delegate methods

    -(void)EJSelectMenuButtonWasPressedWithTitle:(NSString *)title;
    -(void)EJSelectMenuButtonWasPressedWithTag:(long)tag;
    
    // button tags start at 100 and increment by one for each
Other configurations:

Change selected button color (default: Purple)

    menu.selectedButtonColor = [UIColor blueColor];

Change menu background color (default: White)

    menu.menuBackgroundColor = [UIColor redColor];

License:

EEJSelectMenu is released under the MIT license. See LICENSE for details.

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].