我有问题
tabBarController(_ tabBarController: UITabBarController, didSelect viewController: UIViewController)
代表解雇。问题在于当我尝试使用 self.tabBarController?.selectedIndex 并以编程方式更改选项卡时。一旦我使用 selectedIndex 并返回到上一个选项卡并单击 tabBarItem,委托就不再触发。仅当我不使用 selectedIndex 时,委托才会触发,但是一旦我使用它,即使我点击 tabBar 项目,didSelect 委托也不会再次触发。有什么建议么?感谢您的帮助!