I have a UITabBarController with 2 tabs, call them A and B. B has a UISegmentedControl within it's view controller. When I am in tab A, how can I programmatically switch to tab B and to a certain index in the segmented control?
I know I can do this to switch tabs:
self.tabBarController.selectedIndex = 1;
but how do I switch to a certain index in the segmented control?