我在AppDelegate中获得了此代码 û
INavigationBar.appearance().backIndicatorImage = #imageLiteral(resourceName: "backarrow")
即使图像的颜色为白色,也会显示为蓝色。如何更改此图像的色调?
答案 0 :(得分:1)
答案 1 :(得分:0)
Swift 5.x和Xcode 12解决方案:
let image = UIImage(named: "abc")!.withRenderingMode(.alwaysOriginal)
navigationBar.backIndicatorImage = image
navigationBar.backIndicatorTransitionMaskImage = image