Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 41 lines (27 sloc) 1.919 kb
f666c60 @myell0w Updated Readme
myell0w authored
1 <img src="http://office.nousguide.com/nouslogosmall.png" alt="NOUSguide Inc." title="NOUSguide Inc." title" style="display:block; margin: 10px auto 30px auto;" class="center">
2
3 # NGTabBarController
4
5 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.
6
7
8 ## Usage
9
10 ``` objective-c
11 NGColoredViewController *vc1 = [[NGColoredViewController alloc] initWithNibName:nil bundle:nil];
12 NGColoredViewController *vc2 = [[NGColoredViewController alloc] initWithNibName:nil bundle:nil];
13 NGColoredViewController *vc3 = [[NGColoredViewController alloc] initWithNibName:nil bundle:nil];
14 NGColoredViewController *vc4 = [[NGColoredViewController alloc] initWithNibName:nil bundle:nil];
15 NGColoredViewController *vc5 = [[NGColoredViewController alloc] initWithNibName:nil bundle:nil];
16
17 vc1.ng_tabBarItem = [NGTabBarItem itemWithTitle:@"VC1" image:nil];
18 vc2.ng_tabBarItem = [NGTabBarItem itemWithTitle:@"VC2" image:nil];
19 vc3.ng_tabBarItem = [NGTabBarItem itemWithTitle:@"VC3" image:nil];
20 vc4.ng_tabBarItem = [NGTabBarItem itemWithTitle:@"VC4" image:nil];
21 vc5.ng_tabBarItem = [NGTabBarItem itemWithTitle:@"VC5" image:nil];
22
23 NSArray *viewController = [NSArray arrayWithObjects:vc1,vc2,vc3,vc4,vc5,nil];
24
25 NGTabBarController *tabBarController = [[NGTestTabBarController alloc] initWithDelegate:self];
26
27 tabBarController.animation = NGTabBarControllerAnimationMoveAndScale;
28 tabBarController.viewControllers = viewController;
29 self.window.rootViewController = tabBarController;
30 ```
31
32 Just have a look inside the provided Demo-Application.
33
34 ## Credits
35
36 NGVaryingGridView was created by [Matthias Tretter](https://github.com/myell0w/) ([@myell0w](http://twitter.com/myell0w)).
37
38 ## License
39
40 NGPageControl is available under the MIT license. See the LICENSE file for more info.
41 For usage without attribution contact [NOUSguide](mailto:info@nousguide.com).
Something went wrong with that request. Please try again.