用程式切換 tabbarController === 若當前位於 `UITabBarController` 的類別,直接貼上即可 ```swift= //要跳轉的 tabbarViewController index selectedIndex = 1 //要跳轉的 tabbarViewController let secondVc = self.viewControllers![1] delegate?.tabBarController?(self, didSelect: secondVc) ``` ## Ref. [How to trigger method "tabBarController:didSelectViewController:" programmatically?](https://stackoverflow.com/a/7453789) ###### tags: `Tabbar Controller`