self.navigationController.tabBarController.selectedIndex not working

前端 未结 7 2026
野趣味
野趣味 2021-01-14 02:07

I have a UITabBarController which containing 4 different UIViewControllers.

On first tab there is a UINavigationViewController

7条回答
  •  离开以前
    2021-01-14 02:54

    if set delegate Try this:

    self.selectedIndex = 1;
    

    You are the tabBarController :)

提交回复
热议问题