views:

445

answers:

2

I have a TabBarController with 4 viewControllers - one of them is called FlashController.

From within the FlashController.m code, how do I switch to one of the other controllers in myTabBarController? Is there a way to access FlashController's container or parent?

The TabBarController is not referenced anywhere in the FlashController.m code.

A: 

Duplicate of http://stackoverflow.com/questions/562046/how-to-change-the-tab-of-a-uitabviewcontroller-programmatically

Shaggy Frog
My question is about how to access the TabBarController from within one of its viewController. Imagine a mainClass.m that adds tabBarController which has two viewControllers - viewController1 and viewController2. In viewController1.m there is a game. When the game is over, viewController1.m wants to tell tabBarController to display viewController2, but viewController1 has no reference to tabBarController. How do I reference the viewController's parent?
Bryan
Now looking at the page you referred me to I might have been able to understand it.
Bryan