Setting the default tab when using storyboards

前端 未结 12 931
执笔经年
执笔经年 2020-12-12 16:27

Can anyone please tell me how to set the default tab when using storyboards in iOS. I can\'t seem to figure out how to accomplish this.

Thank you

12条回答
  •  借酒劲吻你
    2020-12-12 16:46

    In the viewDidLoad() of the TabBarController, set selectedIndex to whatever you want. (0 would be the first, 3 would be the fourth, etc.)

提交回复
热议问题