Custom UITabBarController for iOS. Provides multiple rows of tab bar items on click of "More".
iOS provides "more" button when the number of tab items are more than 5 (8 for iPad). Once you go a level deep in the more section, we cant see all the available tab items.
This custom UITabBarController provides a elegent way of showing all the tab items in a multi row view, letting the user to switch between any screen any time.
- Universal device support (iPhone + iPad)
- Multiple Storyboard support
- Easily stylable
- Nice set of configuration options
- Lightweight, simple and readable code.
- Git clone or download the project.
- Go to Example directory and run pod install.
- Open the MultiRowUITabBar.xcworkspace in xCode.
- Run the xCode project
- Download the zip
- Add the files under MultiRowTabBar into your project.
- Extend your UITabBarController from MultiRowTabBarController
UIStyleKit is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "MultiRowUITabBar"
Subclass your TabBarController with DSMultiRowTabBarController. Call [self setupTabBar]
in viewDidLoad
and override the following methods.
-(NSUInteger)numberOfMenuItems;
-(void)setMenuItem:(DSMenuItem *)menuItem forIndex:(NSUInteger)index;
-(UITabBarItem *)tabBarItemForIndex:(NSUInteger)index;
-(UIViewController *)viewControllerForIndex:(NSUInteger)index;