有两种办法
1.导航条上面有个view视图,一个透明背景,加上label搞定
2.直接修改导航条字体属性
[self.navigationController.navigationBar setTitleTextAttributes:
@{NSFontAttributeName:[UIFont systemFontOfSize:19],
NSForegroundColorAttributeName:[UIColor greenColor]}];
1.导航条上面有个view视图,一个透明背景,加上label搞定
2.直接修改导航条字体属性
[self.navigationController.navigationBar setTitleTextAttributes:
@{NSFontAttributeName:[UIFont systemFontOfSize:19],
NSForegroundColorAttributeName:[UIColor greenColor]}];