2
I am developing an application, I would like the navigation bar to have the same color as the body of the project, I am trying with the following code
UINavigationBar.appearance().barTintColor = UIColor.redColor()
This code works, changes to red color, however I wanted another color and tried the following code
navigationBarAppearace.tintColor = UIColor.init(red: 23, green: 27, blue: 113, alpha: 1)
and also tried that other
let corBarra = UIColor(red: 24, green: 27, blue: 113, alpha: 1)
UINavigationBar.appearance().barTintColor = corBarra
Does anyone have any idea how to change to a color that is no longer preset?
Thank you Leo, solved my problem. Thank you
– Kleiton Batista
Nothing Kleiton. If you need help with the date in iso8601 format let me know. Abs
– Leo Dabus
Leo, another expensive question You can tell me how I can change the text of the "back" button of the navbar, the default appears "<back" wanted to put to "<back" or an image that become more intuitive
– Kleiton Batista
So in my head I don’t remember but I think it’s right to always use localized string. I’ll look for some reference and tell you. Open another question.
– Leo Dabus
Okay Leo, thanks for the layout, I’ll create a question
– Kleiton Batista