StoryBoardでTabBarControllerを作成すると簡単にタブ移動はできるのですが、タブ以外をタップしたときにも遷移させるためのメモ。
tabBarController?.selectedViewController = (tabBarController?.childViewControllers[0])! as UIViewController
More than 5 years have passed since last update.
StoryBoardでTabBarControllerを作成すると簡単にタブ移動はできるのですが、タブ以外をタップしたときにも遷移させるためのメモ。
tabBarController?.selectedViewController = (tabBarController?.childViewControllers[0])! as UIViewController
Register as a new user and use Qiita more conveniently