Select no tabs in a UITabBar

后端 未结 7 1527
心在旅途
心在旅途 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 20:02

    Are there better methods?

    use [self.tabBarController setSelectedViewController:nil],
    Warning : "-[UITabBarController setSelectedViewController:] only a view controller in the tab bar controller's list of view controllers can be selected."
    

提交回复
热议问题