iOS设置导航栏标题

方法一:在UIViewController中设置self.title。

方法二:设置self.navigationItem.titleView。

原文地址:https://www.cnblogs.com/bettercoder/p/6002198.html