views:

19

answers:

1

Just doing some programming for iPhone.. is there a method for this?

+1  A: 

Yes. In a view controller:

self.tabBarController.selectedIndex = n;

You can also set selectedViewController, if that is easier for you.

Paul Lynch