UITabBarController - how to make “no tabs” selected at start up?
问题 Is there any way in iPhone to unselect all tabs of a UITabBarController ? ie, my application has a "homepage" which does not belong to any tabs on the below displayed tabbar. Now when user touches any tab on the tabbar, I would like to load the corresponding tab. Is this possible ? I have already tried: self.tabBarController.tabBarItem.enabled = NO; self.tabBarController.selectedIndex = -1; but this does not help. Any other solutions ? Please ? 回答1: I've managed to accomplish this using KVO