XLPagerTabStrip を使用して、View Controller の上部にタブ バーを効果的に作成し、その中に複数の子 View Controller を表示しています。ButtonBarPagerTabStripViewControllerを拡張する親コントローラーとして Home を呼び出しましょう。Child1 と Child2 の 2 つの子ビュー コントローラーがあります。私が期待したように、すべてが完璧に機能しています。しかし今、子View Controllerをプログラムで切り替える必要があるという要件が必要です。つまり、(child2 の) プロセスが終了すると、Child 2 から Child1 へのタブの切り替えがトリガーされます。いくつかの方法があることは知っていますが、
func moveToViewController(at index: Int)
func moveToViewController(at index: Int, animated: Bool)
func moveTo(viewController: UIViewController)
func moveTo(viewController: UIViewController, animated: Bool)
しかし、私はそれを使用する方法がわかりません。