title: Changing Cancel button Font in UISearchBar
body: <p>I'm customizing a search bar and struggling to change the font of the "Cancel" button that pops in while typing in the search bar. So far, this is what I tried (casting UIView to UIBarButton fails):</p>
  
  <pre><code>for subView in controller.searchBar.subviews  {
  
      if let cancelButton = subView as? UIBarButtonItem {
          cancelButton.setTitleTextAttributes([ NSFontAttributeName: font ], forState: UIControlState.Normal)
      }
  }
  </code></pre>