简体   繁体   English

如何取消突出显示选项卡栏中的选项卡

[英]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.

相关问题 您如何在没有标签栏的主页上,然后在其中一个页面上添加标签栏? - How do you have a main page with out a tab bar and then on one of the pages add a tab bar? 当同时具有标签栏和导航栏时,如何将数据加载到表视图中? - How do you load data into a Table View when there's both a Tab Bar and a Nav Bar? iPhone开发人员:取消选择(或取消突出显示)选定的选项卡项 - iphone dev : deselect(or unhighlight) selected tab item 您如何创建凸起的标签栏项目(例如在Instagram中找到的项目)? - How do you create a raised tab bar item, like is found in Instagram? 如何调整Xcode 4.3.1中的标签栏项目的大小? - How do I resize the tab bar items in Xcode 4.3.1? 如何实现“ iPhone App Store”样式标签栏? - How do I implement an “iPhone App Store” style tab bar? 如何将CoreData添加到选项卡栏应用程序 - How Do I Add CoreData to a Tab Bar Application 如何在现有项目的情节提要中添加选项卡栏? - How do I add a tab bar to the storyboard of an existing project? 如何在基于标签的应用程序中永久隐藏“更多”栏 - How do I permanently hide the “More” bar in a Tab Based Application 如何在视图内加载标签栏控制器 - How do load a tab bar controller inside a view
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM