我的导航栏的色调会自动改变
The tint of my navigation bar changes automatically
我的导航栏上有一个自定义按钮,我用 UINavigationBar.appearance().tintColor = UIColor.whiteColor()
更改了导航栏的色调
当这个按钮动作时,所有导航条returns变为蓝色
我该如何解决?
请将导航栏做成属性如下
Swift3.0代码:
self.navigationController?.navigationBar.titleTextAttributes = [NSForegroundColorAttributeName: UIColor.white]
我的导航栏上有一个自定义按钮,我用 UINavigationBar.appearance().tintColor = UIColor.whiteColor()
当这个按钮动作时,所有导航条returns变为蓝色
我该如何解决?
请将导航栏做成属性如下
Swift3.0代码:
self.navigationController?.navigationBar.titleTextAttributes = [NSForegroundColorAttributeName: UIColor.white]