标签栏外观突出显示

发布于 2024-11-09 03:09:45 字数 411 浏览 0 评论 0原文

需要调整此选项卡栏的外观。我就这样创建了一个,并且进展顺利。但是,当您点击其中一个选项卡按钮时,它会变暗,直到您松开为止。我该如何摆脱这个?此外,当您点击已选择的按钮之一时,它会变为未选择状态,然后在您松开时恢复为已选择状态。我该如何做到这一点,以便当您点击已选择的选项卡按钮时没有视觉反馈?

http://www.rumexit.co.uk/2010/07/how-to-customise-the-tab-bar-uitabbar-in-an-iphone-application-part-1- of-2/

Need to tweak the appearance of this tab bar. I created one just like this and it went well. But when you tap on one of the tab buttons it turns dim till you let it go. How do I get rid of this? Also when you tap on one of the buttons that is already selected, it turns to unselected stated then back to selected when you let off. How do I make it so that when you tap on a tab button that's already selected there's no visual feedback?

http://www.rumexit.co.uk/2010/07/how-to-customise-the-tab-bar-uitabbar-in-an-iphone-application-part-1-of-2/

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

汹涌人海 2024-11-16 03:09:45

我不确定你的意思。当您点击已选择的选项卡按钮时,没有视觉反馈。

标签栏基本上就是这样。如果您希望它的外观或行为有所不同,您将必须实现自己的子视图。

编辑:如果您直接提供该链接就好了。您的问题不是关于标签栏,而是如何禁用 UIButton 上的突出显示。

谷歌上的第一个点击建议:

button.adjustsImageWhenHighlighted = NO;

如果这对你不起作用,我相信其他建议之一会。

I'm not sure what you mean. When you tap on a tab button that's already selected there's no visual feedback.

The tab bar pretty much is what it is. If you want it to look or behave differently you're going to have to implement your own subviews.

EDIT: It would be good if you would have provide that link directly. Your question isn't about tab bars, but how to disable highlighting on UIButton.

The first hit on Google suggests:

button.adjustsImageWhenHighlighted = NO;

If that doesn't work for you I'm sure one of the other suggestions will.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文