我有一个rootviewcontroller正在扩展的UITabBarController. 它有几个孩子viewcontrollers。
我想要的只是以编程方式viewcontroller从第一个中选择第二个/第三个/..。我用过
`.selectedViewController`, `.selectedIndex`, `.navigationController.tabBarController.tabBar.selectedItem = ...`
以及这个主题的所有变体。我在使用时注意到以下内容
`tabBarController.selectedViewController = tabBarController.viewControllers?[1]`
显示tabBarController2ndviewcontroller一秒钟,但又回到 1st viewcontroller。我有一种预感,这是焦点引擎,但我现在迷路了。