let dict:NSDictionary = NSDictionary(object: UIColor.orangeColor(),forKey:NSForegroundColorAttributeName) navigationBar.titleTextAttributes = dict as? [String : AnyObject]
用titleTextAttributes 修改navigationItem.title 原文链接:https://www.f2er.com/swift/323341.html