Giter Site home page Giter Site logo

pqmenubar's Introduction

PQMenuBar

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.

pqmenubar's People

Contributors

pqteru avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.