Latest 1.0.0
Homepage https://github.com/imilakovic/IMDrawersMenuController
License MIT
Platforms ios 7.0, requires ARC
Authors

IMDrawersMenuController is an iOS menu controller with drawers as menu items.

Requirements

  • Requires iOS 7 or later
  • Requires Automatic Reference Counting (ARC)

Demo Project

Please feel free to try the IMDrawersMenuControllerDemo project in Xcode. It demonstrates a simple setup of the menu controller.

Installation

CocoaPods

If you are using CocoaPods, simply add pod 'IMDrawersMenuController' to your Podfile.

Drag & Drop

Simply drag & drop the IMDrawersMenuController folder to your project.

Usage

IMDrawersMenuController has a very similar usage to UITabBarController. Please see the following steps:

1. Import the header file

#import "IMDrawersMenuController.h"

2. Initialize the menu controller and set its view controllers

IMDrawersMenuController *menuController = [IMDrawersMenuController new];
menuController.viewControllers = yourViewControllers;

3. Customize menu items

[menuController.menuView.items enumerateObjectsUsingBlock:^(IMDrawersMenuItem *item, NSUInteger idx, BOOL *stop) {
    item.backgroundColor = yourColor;
    item.font = yourFont;
    item.image = yourNormalImage;
    item.highlightedImage = yourSelectedImage;
    item.highlightedTextColor = yourHighlightedTextColor;
    item.textColor = yourNormalTextColor;
}];

4. Set the menu controller as window’s root view controller

_window.rootViewController = menuController;

License

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

Latest podspec

{
    "name": "IMDrawersMenuController",
    "version": "1.0.0",
    "summary": "iOS custom menu controller with drawers.",
    "homepage": "https://github.com/imilakovic/IMDrawersMenuController",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Igor Milakovic": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/imilakovic/IMDrawersMenuController.git",
        "tag": "v1.0.0"
    },
    "source_files": [
        "IMDrawersMenuController",
        "IMDrawersMenuController/**/*.{h,m}"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This