title: Back button position on navigation controller
body: <p>I'm currently trying to develop a custom search for an iOS app.</p>
  
  <p>I have managed to get the search controller appearing and the search bar appearing properly, although my only problem is that I need the back button to appear on the right of the navigation bar rather than the left, see below</p>
  
  <p>(As you can see the back button is on the left but I need it to be on the right)
  <a href="http://imgur.com/qLPoIfG" rel="nofollow">http://imgur.com/qLPoIfG</a></p>
  
  <p>Here is my code:</p>
  
  <pre><code>import UIKit
  </code></pre>
  
  <p>class SearchTop10Controller: UITableViewController, UISearchResultsUpdating {</p>
  
  <pre><code>override func viewDidLoad() {
      super.viewDidLoad()
  
      let searchController = UISearchController(searchResultsController: self);
  
      self.definesPresentationContext = true;
      searchController.searchResultsUpdater = self;
      //        searchController.hidesNavigationBarDuringPresentation = true;
  
      searchController.dimsBackgroundDuringPresentation = false;
      searchController.searchBar.sizeToFit();
      self.navigationItem.titleView = searchController.searchBar;
      self.tableView.tableHeaderView = searchController.searchBar;
  }
  
  override func viewDidAppear(animated: Bool) {
  
  
  }
  
  func updateSearchResultsForSearchController(searchController: UISearchController) {
      //do whatever with searchController here.
  }
  
  override func didReceiveMemoryWarning() {
      super.didReceiveMemoryWarning()
      // Dispose of any resources that can be recreated.
  }
  </code></pre>