[self.navigationController.navigationBar setTitleTextAttributes:
@{NSFontAttributeName:[UIFont boldSystemFontOfSize:20.0f],// 红色区域为字体加粗方法
NSForegroundColorAttributeName:[UIColor blackColor]}];
转载于:https://www.cnblogs.com/leikun1113/p/5492241.html