Setting default tab in UITabBar in swift

前端 未结 4 764
傲寒
傲寒 2020-12-28 22:57

I\'m almost finished with a project and am working out the last few UI kinks. My app uses a tab bar to navigate and for aesthetic purposes I want the app to open on the last

4条回答
  •  礼貌的吻别
    2020-12-28 23:28

    In the First items view controller write

    tabBarController?.selectedIndex = 2//required value
    

提交回复
热议问题