title: Adding UIBarButton item in swift
body: <p>I'm trying to add a UIBarButton item to my nav bar. </p>
  
  <p>Here is my Navigation Bar class declaration: </p>
  
  <pre><code>import UIKit
  
  class NavigationBarController: UINavigationController {
  
      override func viewDidLoad() {
          super.viewDidLoad()
  
          configureToolbar()        
      }
  
      override func didReceiveMemoryWarning() {
          super.didReceiveMemoryWarning()
          // Dispose of any resources that can be recreated.
      }
  
      // #pragma mark - Navigation bar data source
  
      func configureToolbar() {
          let toolbarButtonItems = [
              searchBarButtonItem
          ]
          toolbar.setItems(toolbarButtonItems, animated: true)
      }
  
      var searchBarButtonItem: UIBarButtonItem {
          return UIBarButtonItem(barButtonSystemItem: .Search, target: self, action: "barButtonItemClicked:")
      }
  }
  </code></pre>
  
  <p>No error in compiler, but all I get is a plain navigation bar. </p>
  
  <p>How do I get the UIBarButtonItem to show up?</p>