navigationBar.tintColor无效时换个方式

2017-01-11  本文已影响385人  浪漫紫薇星

使用

self.navigationController.navigationBar.tintColor = [UIColor whiteColor];

无效时可以试试下面这个

NSMutableDictionary *att = [NSMutableDictionary dictionary];

att[NSForegroundColorAttributeName] = [UIColor whiteColor];

[self.navigationController.navigationBar setTitleTextAttributes:att];

上一篇 下一篇

猜你喜欢

热点阅读