[英]How to change the color of a NavigationBar?
将此代码放在didFinishLaunchingWithOptions方法中的应用程序委托中,或在navigationController的自定义类中
let customColor = UIColor.redColor()
UINavigationBar.appearance().titleTextAttributes = [NSForegroundColorAttributeName:customColor]
UINavigationBar.appearance().tintColor = customColor
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.