Something you haven't made clear here. I'm assuming that you have subclassed UITabBarController
.
If all the view controllers are children of the tab bar controller, then self.tabBarController
will give you access to the tab bar.
It may end up looking something like this:
if ([self.tabBarController isKindOfClass:[MyTabBarController class]]) {
MyTabBarController *myTabBarController = (MyTabBarController *)self.tabBarController;
// …
}