I have a title in my navigation bar and I want to change it to a custom font. I found this line of code, but this is when you have a navigation controller.
self.navigationController?.navigationBar.titleTextAttributes = [ NSFontAttributeName: UIFont(name: "LeagueGothic-Regular", size: 16.0)!, NSForegroundColorAttributeName: UIColor.whiteColor()]
But I do not have a navigation controller. I added the navigation bar manually for viewing.


How can I change the font of the comment?
source share