UIBarButtonItem is blue instead of image

前端 未结 3 1365
既然无缘
既然无缘 2021-01-14 08:52

Here is what I have in my viewDidLoad method:

self.navigationController?.navigationBar.backIndicatorImage = UIImage(named: \"back\")
self.navigationControlle         


        
3条回答
  •  情话喂你
    2021-01-14 09:20

    Quickest solution

    .navigationController?.navigationBar.tintColor = UIColor.redColor()
    

    Or you can create custom barButton item, with custom view

提交回复
热议问题