[英]How do you UNhighlight a tab in the tab bar
I have an app that has a tabbar at the bottom. 我有一个在底部具有标签栏的应用程序。 When I select a tab the press is caught by:
当我选择一个选项卡时,按一下即可发现:
didSelectItem:(UITabBarItem *)item
So, everything works great except that the tab stays blue until I hit another tab which stays blue until I hit another tab, etc.... 因此,一切工作正常,除了在我点击另一个选项卡之前该选项卡一直保持蓝色直到我点击另一个选项卡之前一直保持蓝色等等。
is there some code I can put in my switch/case code that turns the blue highlight back off? 我可以在开关/案例代码中添加一些代码来关闭蓝色高亮显示吗?
What you describe is the default behavior for UITabBars. 您描述的是UITabBars的默认行为。 If you really want to change this default user-recognized behavior, I suggest going with a Custom toolbar instead.
如果您确实想更改此默认的用户认可的行为,建议改用“自定义”工具栏。 Apple has done a great job with their UI elements by providing developers with the elements that iPhone users already know and understand.
Apple通过为开发人员提供iPhone用户已经知道和理解的元素,在UI元素方面做得很好。 It is strongly advised that you leave the UITabBar functionality as is.
强烈建议您保留UITabBar功能。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.