- 修改导航栏颜
1 #define COLOR_TOMATO [UIColor colorWithRed:255/255.0f green:99/255.0f blue:71/255.0f alpha:1.0f] /*!< 番茄色 */ 2 3 self.navigationController.navigationBar.barTintColor = COLOR_TOMATO;//修改导航栏颜色
- 修改导航栏标题字体(大小、颜色)
1 self.navigationController.navigationBar.titleTextAttributes = @{NSFontAttributeName:[UIFont systemFontOfSize:19], 2 NSForegroundColorAttributeName:[UIColor whiteColor]}; //修改字体大小和颜色