The question is plain easy and simple, the answer unfortunately not.
How can you change the font of the text in the UINavigationBar
?
Not sure why all the answers included the shadow. Adding the lines that manipulate the shadow does nothing in respect to changing text font. These 2 lines of code will work for iOS 8.4 and Swift
let attributesDictionary = [NSFontAttributeName: UIFont(name: "Helvetica Neue", size: 14)!]
navigationController!.navigationBar.titleTextAttributes = attributesDictionary
The titleTextAttributes
stores a dictionary that will dictate the font, color, size, and other attributes of the navigation bar's title.