ios - 有没有办法更改更多导航编辑弹出模式中的导航栏色调颜色?

标签 ios swift uinavigationcontroller

我可以使用self.moreNavigationController.navigationBar.barTintColor更改more的色调颜色,但是当点击Edit时,它会弹出一个模式弹出窗口。如何更改该模式对话框的色调颜色?

最佳答案

我使用解决了这个问题

let appearance = UINavigationBar.appearance()
appearance.titleTextAttributes = [NSAttributedString.Key.foregroundColor: UIColor.white]
appearance.barTintColor = Constants.Color.barTint // UIColor
appearance.tintColor = .white

关于ios - 有没有办法更改更多导航编辑弹出模式中的导航栏色调颜色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57172565/

相关文章:

iphone - 导航栏 + presentModalViewController

ios - 使用隐藏属性与私有(private) iVars

ios - UITableViewCell 不使用不推荐使用的方法 initWithFrame :reuseIdentifier

json - 在 JSON 中使用 nil 而不是 Optional(<null>) 作为空值

swift - SpriteKit中如何控制节点的速度

ios - 增加 UINavigationBarLargeTitleView 的高度

IOS -XCTest : How Do I Get A Run Loop to Work in A Unit Test? 中的 NSRunLoop

ios - 由于未捕获的异常 'NSRangeException' 而终止应用程序,原因 : 'Cannot remove an observer - ios

ios - 根据给定字符串从头开始搜索联系人

objective-c - 如何避免总是创建 UINavigationControllers?