【问题标题】:How to change NavController's Backbutton-tintColor in Combination with SearchController in iOS13如何在 iOS13 中结合 SearchController 更改 NavController 的 Backbutton-tintColor
【发布时间】:2019-10-15 12:42:07
【问题描述】:

至于 iOS13.0 和 iOS13.1,我可以看到使用 SearchController 时的行为差异:

-> iOS12.x 中,BackButton 为黄色是正确的

->在iOS13.0中,BackButton在黄色是正确的

-> iOS13.1 中,BackButton 错误(默认为蓝色)

如果用户键入几个搜索字母然后按取消,则返回按钮会变成错误的颜色。

另外,我设置颜色如下(..不适用于iOS13.1):

navigationItem.searchController?.searchBar.barStyle = .black
navigationItem.searchController?.searchBar.keyboardAppearance = .dark
navigationItem.searchController?.searchBar.tintColor = .yellow
navigationItem.searchController?.searchBar.barTintColor = .yellow

【问题讨论】:

    标签: uicolor uisearchcontroller ios13 uinavigationitem searchbar


    【解决方案1】:

    我也遇到过这个问题,它已在 iOS 13.2 上修复

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-04-10
      • 2017-07-25
      • 1970-01-01
      • 2015-11-02
      • 1970-01-01
      相关资源
      最近更新 更多