title: UITable DidSelectRowAtIndexPath not sending data over via segue (Unexpectedly found nil)
body: <p>I'm trying to send data from one table in viewController A to viewController B. However whenever I try to I keep get the error message <code>Unexpectedly found nil</code>.</p>
  
  <p>I have all of my data in a data class array which is being called and written into the table cells, I then have a segue which should pass across the <code>selectedCell</code> data across to a var in the 2nd viewController called <code>cellData</code></p>
  
  <pre><code>if segue.identifier == "viewMemorySegue" {
              let viewMemoryVC = segue.destinationViewController as! memoryViewierViewController
              viewMemoryVC.cellData = selectedCell!
          }
  </code></pre>
  
  <p>I then have a <code>didSelectRow</code> function which is setting the <code>selectedCell</code> data and then <code>performing segue</code> </p>
  
  <pre><code>func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
      selectedCell = cacheData[indexPath.row]
      tableView.deselectRowAtIndexPath(indexPath, animated: true)
      performSegueWithIdentifier("viewMemorySegue", sender: self)
  }
  </code></pre>
  
  <p>I have tired <code>print(cellData.memoryTitle)</code> within the <code>didSelect</code> function to see if it was nil, however it was printing out the correct data.</p>
  
  <p>Im new to Xcode and swift so all help is appreciated!!!</p>
  
  <p><strong>GITHub Project Link</strong>
  <a href="https://github.com/Matthammond96/Relive" rel="nofollow">https://github.com/Matthammond96/Relive</a></p>