TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Jun 2015 |
Maintained by David Chen.
PQMenuBar is a Light-weight Menu Bar for iOS App.
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];
menu.delegate = self;
Method that can be implemented
- (void)menuBar:(PQMenuBar *)menubar didSelectAtIndex:(int)index;
To run the example project, clone the repo, and run pod install
from the Example directory first.
PQMenuBar is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "PQMenuBar"
pqteru, [email protected]
PQMenuBar is available under the MIT license. See the LICENSE file for more info.