How can I segue to the second tab of a tab bar controller from the first tab?

后端 未结 2 1503
感情败类
感情败类 2020-12-16 17:24

I have no problem actually performing the segue, but when I do, my tab bar disappears from the bottom of the view. I have made a storyboard segue from TabBarController1 to T

2条回答
  •  心在旅途
    2020-12-16 18:02

    If you're looking for how to change from one tab to another in a tab controller without using the tab bar you can do this

    tabBarController?.selectedIndex = [number of tab]
    

提交回复
热议问题