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:
#import "UITabBarController+SelectedTabBottomIndicator.h"
- set the color you want to use
setSelectedBottomTabIndicatorColor
- call
customizeToolbar
method
[self.tabBarController setSelectedBottomTabIndicatorColor:[UIColor greenColor]];
[self.tabBarController customizeToolbar];