Latest 0.2.2
Homepage https://github.com/Ptitematil2/MHExtendedMenuControl
License MIT
Platforms ios 7.0, requires ARC
Authors

Platform
Version
License

MHExtendedMenuControl allows you to create a bouncing menu with multiple buttons

Version

  • 0.2.0

Requirements

  • iOS 8.0+
  • ARC

Installation

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

pod "MHExtendedMenuControl"

Usage

Import the library where you need it.

#import <MHExtendedMenuControl.h>

Then you can create your menu like this :

int menuSize = 60;
int numberOfButtons = 3;
int marginSize = 20;
int numberOfMargin = 2;

MHExtendedMenuControl *expandableMenu = [[MHExtendedMenuControl alloc] initWith:numberOfButtons buttonsWithImages:@[[UIImage imageNamed:@"Avengers-Black-Widow-icon"], [UIImage imageNamed:@"Avengers-Hawkeye-icon"], [UIImage imageNamed:@"Hopstarter-Superhero-Avatar-Avengers-Nick-Fury"]]  animation:MHExtendedMenuAnimationRight andDelegate:self];
expandableMenu.frame = CGRectMake(marginSize, CGRectGetMaxY(self.view.frame)-menuSize-marginSize, menuSize*numberOfButtons+marginSize*numberOfMargin, menuSize);
[self.view addSubview:expandableMenu];

Delegates

You can use delegates to know :

  • When main menu button has been touched (Required)
- (void)MHExtendedMenuControlDidTapMenu:(MHExtendedMenuControl *)control;
  • When menu buttons have been touched (Required)
- (void)MHExtendedMenuControl:(MHExtendedMenuControl *)control didSelectButton:(int)buttonPosition;
  • When menu is opening or closing (Optionals)
- (void)MHExtendedMenuControlWillOpenMenu:(MHExtendedMenuControl *)control;

- (void)MHExtendedMenuControlDidOpenMenu:(MHExtendedMenuControl *)control;

- (void)MHExtendedMenuControlWillCloseMenu:(MHExtendedMenuControl *)control;

- (void)MHExtendedMenuControlDidCloseMenu:(MHExtendedMenuControl *)control;

Author

Mathilde Henriot, [email protected]

License

MHExtendedMenuControl is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "MHExtendedMenuControl",
    "version": "0.2.2",
    "summary": "MHExtendedMenuControl Library",
    "description": "MHExtendedMenuControl allows you to create a bouncing menu with multiple buttonsn",
    "homepage": "https://github.com/Ptitematil2/MHExtendedMenuControl",
    "license": "MIT",
    "authors": {
        "Mathilde Henriot": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Ptitematil2/MHExtendedMenuControl.git",
        "tag": "0.2.2"
    },
    "social_media_url": "https://twitter.com/Ptitematil2",
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "MHExtendedMenuControl": [
            "Pod/Assets/*.png"
        ]
    }
}

Pin It on Pinterest

Share This