//设置TabBar的颜色
self.navigationController.navigationBar.barTintColor = [Common hexStringToColor:@"47a8ef"];
[self.navigationController.navigationBar setTintColor:[Common hexStringToColor:@"47a8ef"]];
其实官方文档有早有说明,,
/*
The behavior of tintColor for bars has changed on iOS 7.0. It no longer affects the bar's background
and behaves as described for the tintColor property added to UIView.
To tint the bar's background, please use -barTintColor.
*/
这一大段看不懂没关系, 最后一句官方文档写的很清楚
please use -barTintColor.
please use -barTintColor.
please use -barTintColor.
please use -barTintColor.
重要的事情说三遍