I have a UITabBarController that is being presented modally from a RootViewController:
stvTabBarController = [[UITabBarController alloc] init];
stvTabBarController.delegate = self;
stvTabBarController.viewControllers = [NSArray arrayWithObjects:stvNavController, scheduleNavController, nil];
stvTabBarController.selectedViewController = stvNavController;
[self presentModalViewController:stvTabBarController animated:YES];
How can I switch tabs from stvNavController? I can't do:
self.tabBarController.selectedIndex = 3;
because I don't have a reference to the tabBarController in the stvNavController.