title: Changing UINavigationBar font in Swift
body: <p>I have a <code>UINavigationBar</code> with a title in the middle. I have added a custom font ("<code>Comic_Andy.ttf</code>") to my app (I have checked <code>info.plist</code> to make sure it's listed, and I have checked the <code>Copy Bundle Resources</code> to make sure it has been added), and I would like the title of the <code>UINavigationBar</code> to be displayed in that font. From what I can gather it seems as though I'm supposed to use this in my <code>ViewController</code>: <br></p>
  
  <pre><code>myNavigationBar.titleTextAttributes = [NSFontAttributeName: UIFont(name: "Comic_Andy", size: 22)]
  </code></pre>
  
  <p>I placed that method in the <code>viewDidLoad</code> function of the <code>ViewController</code>. <br> I have also tried this in the <code>didFinishLaunchingWithOptions</code> function of the <code>AppDelegate</code>:</p>
  
  <pre><code>UINavigationBar.appearance().titleTextAttributes = [NSFontAttributeName: UIFont(name: "Comic_Andy", size: 22)]
  </code></pre>
  
  <p><br> I am programming in Swift, in XCode 6 Beta 6. Many resources regarding this task have mentioned using a method called <code>setTitleTextAttributes</code>, which is nowhere to be seen. I can't figure it out for the life of me - I've probably spent close to 3 hours on it by now - I have checked every StackOverflow answer, every website, so please do not mark this as a duplicate. <br><br> Many thanks in advance!</p>