Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A custom TabBarController implementation for iPhone and iPad
Objective-C Ruby C
Tree: 9a8eb145a6

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Demo/NGVerticalTabBarControllerDemo
NGTabBarController.xcodeproj
NGTabBarController
.gitignore
LICENSE
README.mdown

README.mdown

NOUSguide Inc.

NGTabBarController

A custom TabBarController which can be positioned on the bottom, top, left or top. Utilizes iOS 5 Containment API if possible, but works on iOS 4 too.

Usage

NGColoredViewController *vc1 = [[NGColoredViewController alloc] initWithNibName:nil bundle:nil];
NGColoredViewController *vc2 = [[NGColoredViewController alloc] initWithNibName:nil bundle:nil];
NGColoredViewController *vc3 = [[NGColoredViewController alloc] initWithNibName:nil bundle:nil];
NGColoredViewController *vc4 = [[NGColoredViewController alloc] initWithNibName:nil bundle:nil];
NGColoredViewController *vc5 = [[NGColoredViewController alloc] initWithNibName:nil bundle:nil];

vc1.ng_tabBarItem = [NGTabBarItem itemWithTitle:@"VC1" image:nil];
vc2.ng_tabBarItem = [NGTabBarItem itemWithTitle:@"VC2" image:nil];
vc3.ng_tabBarItem = [NGTabBarItem itemWithTitle:@"VC3" image:nil];
vc4.ng_tabBarItem = [NGTabBarItem itemWithTitle:@"VC4" image:nil];
vc5.ng_tabBarItem = [NGTabBarItem itemWithTitle:@"VC5" image:nil];

NSArray *viewController = [NSArray arrayWithObjects:vc1,vc2,vc3,vc4,vc5,nil];

NGTabBarController *tabBarController = [[NGTestTabBarController alloc] initWithDelegate:self];

tabBarController.animation = NGTabBarControllerAnimationMoveAndScale;
tabBarController.viewControllers = viewController;
self.window.rootViewController = tabBarController;

Just have a look inside the provided Demo-Application.

Credits

NGVaryingGridView was created by Matthias Tretter (@myell0w).

License

NGPageControl is available under the MIT license. See the LICENSE file for more info. For usage without attribution contact NOUSguide.

Something went wrong with that request. Please try again.