Latest 0.1.1
Homepage https://github.com/pqteru/PQMenuBar
License MIT
Platforms ios 7.0, requires ARC
Authors

CI Status
Version
License
Platform

PQMenuBar is a Light-weight Menu Bar for iOS App.

  • Easy to use
  • Customizable menu size
  • Customizable menu item features
  • Paging available

![Screenshot](/PQMenuBar_screenshot.png?raw=true "PQMenuBar_screenshot" =250x)

Usage

menu = [[PQMenuBar alloc] initWithFrame:CGRectMake(0, 64, [UIScreen mainScreen].bounds.size.width, 180)];

PQMenuBarItem *itemA = [[PQMenuBarItem alloc] initWithTitle:@"testA"
                                              image:[UIImage imageNamed:@"photo"]
                                              target:self
                                              action:@selector(actionA:)];

PQMenuBarItem *itemB = [[PQMenuBarItem alloc] initWithTitle:@"testB"
                                              image:nil
                                              target:self
                                              action:@selector(actionB:)];
[menu addMenuItem:itemA];
[menu addMenuItem:itemB];

Setting columns and rows, default columns = 4 and rows = 2

[menu setColumn:3 andRow:3];

Set hide paging, default is NO

[menu hidePaging:YES];

Display menu

[menu show];

Dismiss menu

[menu dismiss];

Delegate

menu.delegate = self;

Method that can be implemented

- (void)menuBar:(PQMenuBar *)menubar didSelectAtIndex:(int)index;

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

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

pod "PQMenuBar"

Author

pqteru, [email protected]

License

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

Latest podspec

{
    "name": "PQMenuBar",
    "version": "0.1.1",
    "summary": "PQMenuBar is a Light-weight Menu Bar for iOS App.",
    "description": "                        PQMenuBar is a Light-weight Menu Bar for iOS App.nn                        * Easy to usen                        * Customizable menu sizen                        * Customizable menu item featuresn                        * Paging availablen",
    "homepage": "https://github.com/pqteru/PQMenuBar",
    "license": "MIT",
    "authors": {
        "pqteru": "[email protected]"
    },
    "source": {
        "git": "https://github.com/pqteru/PQMenuBar.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "PQMenuBar": [
            "Pod/Assets/*.png"
        ]
    }
}

Pin It on Pinterest

Share This