我的问题与问题ViewController title color will change change color when back button clicked
完全相同我有导航控制器->视图控制器(#1)->选择到另一个视图控制器(#2)
View Controller#2具有不同的标题颜色。
当我单击View Controller#2中的“后退”按钮以返回到主视图(#1)时,其标题颜色未更改为应有的颜色,但仍保留了View Controller#2的标题颜色。
我已经在属性检查器中设置了正确的标题颜色。我还在Home View Controller的viewWillAppear中专门设置了标题颜色,但是它的颜色仍然没有改变。
我想知道我还需要做什么?有
我已经在Home View Controller的viewWillAppear中添加了将标题颜色设置为白色的代码
using eBAControls = @"somepath"; <- that is set dynamically for ex while one of my methods are being executed etc...
这是setTitleColorWhite
override func viewWillAppear(_ animated: Bool){
super.viewWillAppear(animated)
print("HomeViewController: viewWillAppear()")
// Mark: - Set navigation bar title color
setTitleColorWhite(vc: self)
activityIndicator.startAnimating()
fetchDetails()
}
答案 0 :(得分:1)
更新<QRadios
error={!whateverThing.isValid}
id="whateverThing"
name="whateverThing"
label="What's your judgement of whateverThing?"
value={whateverThing.value}
onChange={this.someHandlerFunc}
onBlur={this.someCheckFunc}
/>
的{{1}}中的color
而不是HomeViewController
viewDidAppear