8000 GitHub - kokomo/crtabbar: This is a custom tab bar controller using images for buttons and a popup for the more button
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

This is a custom tab bar controller using images for buttons and a popup for the more button

Notifications You must be signed in to change notification settings

kokomo/crtabbar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CRTabBarController

This is a custom container view controller for iOS 5 that works just like a regular UITabBarController, except the tabs are at the buttom and the more button expands up instead of taking you to a new table controller.

Screenshot Screenshot

To use:

Declare your app delegate @interface CRTabBarAppDelegate : UIResponder <UIApplicationDelegate, CRTabBarControllerDelegate>

And setup your controllers

 UIViewController *crCategoriesslidingViewController = [[UIViewController alloc] init];
UINavigationController *categoriesNavigationController = [[UINavigationController alloc] initWithRootViewController:crCategoriesslidingViewController];
UITabBarItem* tabBarItem = [[UITabBarItem alloc] init];
[tabBarItem  setFinishedSelectedImage: [UIImage imageNamed: @"ICN_home_ON"]
          withFinishedUnselectedImage: [UIImage imageNamed: @"ICN_home"]];
[categoriesNavigationController setTabBarItem: tabBarItem];
[viewControllers addObject:categoriesNavigationController];

The case above is a view controller wrapped in a navigation controller so we can push other views if we want to from the controller that was loaded.

The code is a compulation of

https://github.com/hollance/MHTabBarController/

And

https://github.com/brendandixon/ExpandableTabBar

Thanks to Joe Scarano http://joescarano.com/ For the tab bar images.

About

This is a custom tab bar controller using images for buttons and a popup for the more button

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0