方法一:

自定义视图,定义一个lable,相关属性在lable里设置

核心方法:

self.navigationItem.titleView = titleLabel;

 方法二:用系统方法直接设置

    [self.navigationController.navigationBar setTitleTextAttributes:@{

                                                                      NSFontAttributeName:[UIFont systemFontOfSize:20],

                                                                      NSForegroundColorAttributeName:WhiteColor

                                                                      }];