ios - I want to set navigation color to different colors for each VC -


i have code change vc nav bar color of choice changes "home" nav bar color think need have if statements check ones should colored.

how write "if view controller color. else blah blah blah?"

one solution add code in each view controller's viewwillappear method updates nav bar appearance needed. way, each view controller appears, sets how things should look.

override func viewwillappear(_ animated: bool) {     super.viewwillappear(animated)      // update colors needed view controller } 

Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

.net - Generate assembly with Roslyn -

batch file - filebot superstrict script: need tiny video sample or other solution -