发个广告:ios开发两年了,一步步走来 关注公众号一起进步
[self.navigationItemsetTitle:@"第一题"];
//-- 改变导航栏的标题文字的大小和颜色
[self.navigationController.navigationBarsetTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColorwhiteColor],NSFontAttributeName:[UIFontboldSystemFontOfSize:18.0f]}];
//设置导航栏背景颜色
[self.navigationController.navigationBarsetBarTintColor:[UIColorblackColor]];