title: Sending data from TableView to new ViewController
body: <p><a href="https://i.stack.imgur.com/mVxZj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mVxZj.png" alt="enter image description here"></a>I have created a segue between two viewControllers called "PassCell". The first has a tableView that I am attempting to send data from upon cell selection. </p>
  
  <p>Ads Controller contains the code snipper Below. Redeem Controller contains <code>var single_ad: ADS?</code> which is the same class defining <code>advertisments</code> var.</p>
  
  <pre><code>override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
      if segue.identifier == "PassCell"{
          let VC = segue.destination as! RedeemController
          VC.single_ad = sender as? ADS
      }
  }
  
  func tableView(_ tableView: UITableView, didDeselectRowAt indexPath: IndexPath) {
      let advert = advertisements[indexPath.row]
      performSegue(withIdentifier: "PassCell", sender: advert)
  }
  </code></pre>
  
  <p>Everything loads but upon selection of a cell I receive an error: 'Receiver () has no segue with identifier 'PassCell''    </p>
  
  <p>In my storyboard though, there is definitely a segue between these two controllers called "PassCell".</p>