I have a rootviewcontroller
which is extending UITabBarController
. It has several children viewcontrollers
.
All I want is to programmatically select the 2nd/3rd/.. viewcontroller
from the first one. I've used
`.selectedViewController`, `.selectedIndex`, `.navigationController.tabBarController.tabBar.selectedItem = ...`
and all the variations on this theme. I notice the following when using
`tabBarController.selectedViewController = tabBarController.viewControllers?[1]`
The tabBarController
displays the 2nd viewcontroller
for a second but goes back to the 1st viewcontroller
. I have a hunch this is the focus engine but I'm lost at this point.