Code Monkey home page Code Monkey logo

bouncemenucontroller's Introduction

BounceMenuController

BounceMenuController is a tab bar controller-esque navigation solution for iOS inspired by Creativedash. An elegant and minimal alternative to UITabBarController.

Animation

Since this project is far from perfect contributions are always welcomed. Feel free to let me know of any bugs you may experience as this has not been used in a production setting. Pull requests are the preferred way to contribute.

Usage

Installation with CocoaPods

platform :ios, "7.0"
pod "BounceMenuController", "~> 0.1.0"

Without CocoaPods

Add BounceMenuController.h, BouceMenuController.m, PlusButton.h, and PlusButton.m files to your project and add the QuartzCore framework to your project.

Code Examples

Initializing and using the BounceMenuController

BounceMenuController *bounceMenuController = [[BounceMenuController alloc] init];

// load view controllers from a storyboard
UIStoryboard *sb = [UIStoryboard storyboardWithName:@"StoryboardiPhone" bundle:nil];
UIViewController *vc1 = [sb instantiateViewControllerWithIdentifier:@"ViewController1"];
UIViewController *vc2 = [sb instantiateViewControllerWithIdentifier:@"ViewController2"];
UIViewController *vc3 = [sb instantiateViewControllerWithIdentifier:@"ViewController3"];

// set the view controllers for the bounce menu
NSArray *controllers = [NSArray arrayWithObjects:vc1, vc2, vc3, nil];
bounceMenuController.viewControllers = controllers;

Any view controller used with BounceMenuController must have its UITabBarItem image set. The image(s) can also be set in your storyboard file.

viewController.tabBarItem.image = [UIImage imageNamed:@"tabBarImage.png"];

You can also customize the background and menu button colors

bounceMenuController.backgroundColor = [UIColor blackColor]
bounceMenuController.menuButtonColor = [UIColor lightGrayColor];

Known Issues

  1. If there are more tabs than vertical space allows (in landscape or otherwise), those tabs cannot be accessed.

Requirements

BounceMenuController requires iOS 5.0 and above.

ARC

BounceMenuController uses ARC as of its 1.0 release.

License

Made available under the MIT License. Attribution would be nice.

bouncemenucontroller's People

Watchers

James Cloos 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.