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
Post a Comment