BounceMenuController 0.1.0

BounceMenuController 0.1.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Ben Vogelzang.




  • By
  • Ben Vogelzang

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

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.