Latest 0.0.5
Homepage https://github.com/morizotter/MZRSlideInMenu
License MIT
Platforms ios 7.0, requires ARC
Authors ,

MZRSlideInMenu is a simple slide-in menu for iOS. When a button is tapped, the menu comes from left/right with animation. Easy installation and use. Add your app an additional flavour with MZRSlideInMenu.

MZRSlideInMenu

Installation

From CocoaPods

pod 'MZRSlideInMenu', '~> 0.0.3'

Manually

Add MZRSlideInMenu.h/.m files into your project. And then, add #import MZRSlideInMenu.h where you want to use. That’s all.

Usage

Simple

Just code below where you want to show menu.

MZRSlideInMenu *menu = [[MZRSlideInMenu alloc] init];
[menu setDelegate:self];
[menu addMenuItemWithTitle:@"buttonTitle1"];
[menu addMenuItemWithTitle:@"buttonTitle1"];
[menu addMenuItemWithTitle:@"buttonTitle2"];
[menu addMenuItemWithTitle:@"buttonTitle3"];
[menu addMenuItemWithTitle:@"buttonTitle4"];
[menu showMenuFromLeft];

And, when the menu button tapped, the delegate below will be called.

- (void)slideInMenu:(MZRSlideInMenu *)menuView didSelectAtIndex:(NSUInteger)index
{
    NSString *buttonTitle = [menuView buttonTitleAtIndex:index];

    NSLog(@"%@(%ld) tapped",buttonTitle, (long)index);
}

Done! This is a basic implementation.

Customize

And you can change settings by accessing MZRSlideInMenu’s properties.

Menu item has another method below. With this, you can change an individual button color and background color.

- (void)addMenuItemWithTitle:(NSString *)title textColor:(UIColor *)textColor backgroundColor:(UIColor *)backgroundColor;

About other customization, please see Demo or MZRSlideInMenu.h file.

Requirement

  • ARC
  • iOS7 and later
  • iPhone only

LISENSE

The MIT License (MIT)

Author

Morita Naoki / Twitter / Facebook / HP

Latest podspec

{
    "name": "MZRSlideInMenu",
    "version": "0.0.5",
    "summary": "A simple slide-in menu for iOS.",
    "description": "                   MZRSlideInMenu is a simple slide-in menu for iOS. When a button is tapped, the menu comes from left/right with animation. Easy installation and use. Add your app an additional flavour with MZRSlideInMenu.nn                   * Simple.n                   * Easy.n                   * Different flavour of menu.n",
    "homepage": "https://github.com/morizotter/MZRSlideInMenu",
    "screenshots": "https://raw.github.com/morizotter/MZRSlideInMenu/assets/sample.png",
    "license": "MIT",
    "authors": [
        "Naoki Morita",
        "other author"
    ],
    "social_media_url": "http://twitter.com/Naoki Morita",
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/morizotter/MZRSlideInMenu.git",
        "tag": "0.0.5"
    },
    "source_files": "Classes/**/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This