I’m trying to programmatically switch tabs. I tried to do this using the following calls:
tabBarController.selectedIndex = 2;
tabBarController.selectedViewController = checkinViewController;
In both cases, This is what I get:
alt text http://cl.ly/1Gia/content
This is what I want:
alt text http://cl.ly/1GKE/content
Any clue?
Maybe just try without the
selectedIndex? Also, is there a fourth tab item in there? If there’s only 3, then selectedIndex = 2 would be the more button and:Some thoughts, not sure if this is the answer.