SWIFT:导航栏颜色显示不正确(Xcode 7)

时间:2015-10-17 23:28:08

标签: ios swift xcode7

我有以下故事板设置:

enter image description here

由于某种原因,导航栏样式(即颜色)不会转移到RSVP视图控制器(它显示为比导航控制器中选择的颜色更深的蓝色)。我已尝试按照其他帖子的建议以编程方式更改它,但是,它似乎没有解决它。

enter image description here

enter image description here

enter image description here

我已经尝试将以下内容添加到ViewWillAppear和ViewDidLoad中,但它没有效果(注意:我只是使用greenColor()作为测试来查看颜色是否发生变化):

 UINavigationBar.appearance().backgroundColor = UIColor.greenColor()

0 个答案:

没有答案