ios - 如何更改 Xcode 8 中选项卡栏图标的高亮颜色?

标签 ios swift xcode tabbar

我制作了一个选项卡式教程项目,我注意到 [用户定义的运行时属性:tintColor:Color:...] 中的常规覆盖似乎不再有效。解决此问题的最佳方法是什么 - 我准备以编程方式执行此操作。

谢谢。

最佳答案

  1. 转到 Xcode 项目中的 Main.Storyboard 文件。选择您的标签栏 Controller 。从文档大纲中,选择标签栏

enter image description here

  1. Attributes Inspector 中搜索名为 Image Tint 的字段。

enter image description here

您可以将其设置为您想要的任何颜色,仅此而已。您的标签栏项目色调将更改。

enter image description here

希望这对您有所帮助。 :)

关于ios - 如何更改 Xcode 8 中选项卡栏图标的高亮颜色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39885202/

相关文章:

ios - 无法为未定义的类 UIBarButtonItem 定义类别

ios - CA动画麻烦

ios - 为什么 AVPlayer 在后台时不继续播放下一首歌曲?

linux - 带有 --foundation 的 swift-corelibs-dev 构建脚本不起作用

objective-c - 在 objective-c 中的两个 View Controller 之间共享对象

swift - Xcode 提示链接错误 : "Undefine symbol: ' _OBJC_CLASS_$_SKAdImpression'"after pod GoogleMobileAdsMediationAdColony

ios - 如何在 iOS 8 的 GameCenter 中启用 Facebook Like?

ios - "Ambiguous use of subscript"新 Swift 更新后出错

ios - interface builder : make the view the same size as the iphone, 确切知道要添加什么约束?

iOS - 如何在模拟器 11.2 上测试 iPhone5C