UINavigationBar background color not the exact UIColor I set it to

前端 未结 12 1580
天命终不由人
天命终不由人 2020-12-14 00:16

Please look at the screenshot below.

I set all the tint colors from the same UIColor object for the UINavigationBar, search bar and toolbar at the bottom. But for so

12条回答
  •  感情败类
    2020-12-14 00:56

    For me this worked -

            let img = UIImage(color: UIColor.red)
            navigationController?.navigationBar.shadowImage = img
            navigationController?.navigationBar.setBackgroundImage(img, for: .default)
    

提交回复
热议问题