【问题标题】:Why can't I set the color of the Bar Tint property in Xcode 13.1为什么我不能在 Xcode 13.1 中设置 Bar Tint 属性的颜色
【发布时间】:2021-12-29 17:44:39
【问题描述】:

我在 Xcode 13.1 中有一个简单的故事板项目,其中包含嵌入在导航控制器中的表格视图控制器,我想将导航栏的颜色设置为系统蓝色。因此,我在属性检查器中选择 Bar Tint 属性旁边的下拉列表并选择系统蓝色,但 Interface Builder 不显示新颜色。它仍然是白色的。

【问题讨论】:

    标签: xcode interface-builder


    【解决方案1】:

    在外观下,选择标准和滚动边缘。在 Standard Appearance 下将 Background 设置为 systemBlueColor,在 Scroll Edge Appearance 下将 Background 设置为 systemBlueColor。

    【讨论】:

    • 非常感谢,效果很好!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-08-29
    • 2017-06-08
    • 2011-02-11
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多