ios - 在 Storyboard 中更改标签栏项目的选定颜色

标签 ios xcode xcode6 uitabbar uitabbaritem

我想将我的标签栏项目更改为粉红色,而不是默认的蓝色。

我如何使用 Xcode 6 中的 Storyboard编辑器完成此操作?

这是我当前的设置,但无法正常工作,蓝色背景有效,但粉红色背景无效:

enter image description here

最佳答案

从 StoryBoard 添加名为“tintColor”的运行时颜色属性。这是可行的(对于 Xcode 8 及更高版本)。

如果您想要未选择的颜色..您也可以添加 unselectedItemTintColor

setting tintColor as Runtime Attribute

关于ios - 在 Storyboard 中更改标签栏项目的选定颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26835148/

相关文章:

ios - 找不到 iPhone 6 模拟器

xcode - 在 Xcode 中添加类

ios - Swift 类添加 "@objc"为什么

ios - 将 2 个 View 链接到 View Controller 的主要问题

ios - 在 sqlite fmdb 中添加索引

iphone - 使用 touchesMoved 缩放 :

ios - 如何使用点表示法中的字符串访问属性?

ios - UIWebView 与 Safari 对比

ios - 无法理解 iOS 系统 UIPasteboard

swift - 自动将添加的行保存/加载到 TableView