bluwave / UITabBarControllerBottomIndicatorColor

iOS category to extend UITabBar to have a bottom color selected indicator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

all the functionality for this is in the category UITabBarController+SelectedTabBottomIndicator.h / .m

UITabBarController+SelectedTabBottomIndicator.m

do the following after setting your viewControllers on the tabBarController:

  1. #import "UITabBarController+SelectedTabBottomIndicator.h"
  2. set the color you want to use setSelectedBottomTabIndicatorColor
  3. call customizeToolbar method
[self.tabBarController setSelectedBottomTabIndicatorColor:[UIColor greenColor]];
[self.tabBarController customizeToolbar];

Screenshot

About

iOS category to extend UITabBar to have a bottom color selected indicator