title: swift passing data from a tableview cell to view controller
body: <p>I'm trying to pass some data to a separate view controller, the view controller is connected to a navigation controller, i can get to this view controller using </p>
  
  <p><code>parentNavigationController!.performSegueWithIdentifier("ExercisePage", sender: self)</code></p>
  
  <p>but the data isn't passed along, here is my code?</p>
  
  <pre><code>override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
  
      let cell2 = tableView.cellForRowAtIndexPath(indexPath) as! SelectionProperties
  
  
      let desVc = uploadDetails1()
  desVc.workoutName = cell2.nameLabel!
           desVc.parentNavigationController!.performSegueWithIdentifier("ExercisePage", sender: self)
   }
  </code></pre>
  
  <p>It says it found nil while unwrapping an optional.</p>
  
  <p><code>desVc.performSegueWithIdentifier("ExercisePage", sender: self) }</code></p>
  
  <p>if i do this,it says theres no segue</p>