Remove TabBarItem highlight

梦想与她 提交于 2019-12-11 05:31:45

问题


I have a UITabBar based application, on one TabBar Button I have a navigation controller. When I move to navigation controller, tab bar highlight option needs to be removed. No tab bar buttons should be selected.

How could I make this possible?


回答1:


Try to take a look at the "Managing the Finished and Selected Image" task's section of the UITabBarItem docs.




回答2:


If you want to change tabBar index then use

[self.tabBarController setSelectedIndex:index];  

of if you dont want to show selected index then just hide tabBar.



来源:https://stackoverflow.com/questions/12490665/remove-tabbaritem-highlight

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!