Dev:UITabBarController

UITabBarController is a class used for managing a UITabBar within a UIViewController hierarchy.

-[UITabBarController _setSelectedViewController:]
This method is the main method used for managing selection. It's called, sometimes indirectly, when you tap an item in the tab bar or change the selected controller programatically (even via -setSelectedIndex:). However, popping back to the root controller and similar tasks are handled by other methods.

A reverse-engineered code listing follows: