Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (27 sloc) 1.87 KB

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.

Jump to Line
Something went wrong with that request. Please try again.