title: Trying to Pass a selected tableview cell value to a NavigationBar Title in swift
body: <p>Excuse the Newbie question I have been trying everything but haven't been able to get this to work :(</p>
  <p>I have a list in a tableview and ideally when a cell (row) is selected it displays the selected cell text as the Title for a Navigation Bar.</p>
  <p>Here is the call for what I have thought should pass the selected value to the next segue</p>
  <pre><code>func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
      
      let selectedTopic = Topics[indexPath.row]
      
      let Sentences = SentencesVC()
      Sentences.TopicPassed = selectedTopic.heading
      
      self.performSegueWithIdentifier(&quot;gotoSentences&quot;, sender: tableView)
      let pathSelect = TopicTableView.indexPathForSelectedRow()
      pathSelect
  }
  </code></pre>
  <p>And the code for the other ViewController:</p>
  <pre><code>var TopicPassed:String!
  
  @IBOutlet weak var NavBar: UINavigationBar!
  
  override func viewDidLoad() {
      super.viewDidLoad()
  
      // Do any additional setup after loading the view.
      self.navigationItem.title = TopicPassed
      
  }
  </code></pre>
  <p>Any help would be greatly appreciated as it is driving me nuts and I am not sure how many times I have tried different solutions to no avail.</p>
  <p>Thanks in advance</p>