I have a Monotouch App, on AppDelegate the RootViewController is a TabBarController, this TabBarController have 5 ViewControllers, lets say view1 to view5, i use
tabBarController.SelectedIndex = 2;
for select wich viewController will load when the app starts it works and the default tabBar is view3, now i need to show another viewController, lets say from view1 change to view5 with code, its possible? theres a way to emulate the clic on one of the buttons of my TabBar, that will work too...
thanks in advance
UPDATE:
I try:
view1.TabBarController.ViewControllers[4].PresentViewController(view5, true, delegate{});
And it works, but the view5 is presented over the TabBar, also i try this:
view1.TabBarController.TabBar.Items[4]. //i dont know wich method could invoke the click
Where i select the item of the tabbar i want to click
I think the solucion is close to this, the problem is that always the view5 shows over the TabBar and block it...
SOLVED:
view1.TabBarController.SelectedIndex = 2; //where the number is the view zero-bassed