Select no tabs in a UITabBar

后端 未结 7 1550
心在旅途
心在旅途 2020-12-06 19:23

I\'m trying to select no tabs at all in my application. At first the first tab is selected, but I\'d like to deselect it so no tabs at all would be selected.

Don\'t

7条回答
  •  温柔的废话
    2020-12-06 19:55

    I think rootController.tabBar.selectedItem = 0;

    it's wrong whatever you have tried. Because when You are setting selectedItem=0, then sure it will take the first tabBarItem of tabBarController.

提交回复
热议问题