title: How can I use pushViewController inside a cell Swift
body: <p>I have a viewController where I have a tableview and inside every cell I have a collectionView.</p>
  
  <p>I want to go to another view (where I will have a back button) so I tried to use my code which is working for the other views:</p>
  
  <pre><code>let vc =  self.storyboard?.instantiateViewController(withIdentifier: "detail") as! DetailView
      vc.name = beachesNames[indexPath.row]
      vc.imagak = imagesNames[indexPath.row]
      self.navigationController?.pushViewController(vc, animated: true)
  </code></pre>
  
  <p>But because this code is inside the TableViewCell I have an error that says:</p>
  
  <blockquote>
    <p>Value of type 'HomeViewCell' has no member 'storyboard'</p>
  </blockquote>
  
  <p>Is there any alternative parameter that I can use or something else it could do my task?</p>
  
  <p>Thanks in advance.</p>