PQMenuBar 0.1.1

PQMenuBar 0.1.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Jun 2015

Maintained by David Chen.



PQMenuBar 0.1.1

  • By
  • pqteru

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

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

Screenshot

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.