title: Calling UIAlertController inside a UITableViewCell
body: <p>I am trying to call a <code>UIAlertController</code> from within my <code>UITtableViewCell</code> when my function is called. It gives me an error saying present is not available. I understand it's not within a <code>ViewController</code>. I am looking for an approach to access it. </p>
  
  <pre><code>override func awakeFromNib() {
      super.awakeFromNib()
      // Initialization code
  
      let tapGestureShareImageView = UITapGestureRecognizer(target: self, action: #selector(self.shareImageTouchUpInside))
      shareImageView.addGestureRecognizer(tapGestureShareImageView)
      shareImageView.isUserInteractionEnabled = true
  }
  
  @objc func shareImageTouchUpInside() {
      showAction()
  }
  
  func showAction() {
      let alertController = UIAlertController(title: "Action Sheet", message: "What do you like to do", preferredStyle: .alert)
  
      let okButton = UIAlertAction(title: "Done", style: .default, handler: { (action) -&gt; Void in
          print("Ok button tapped")
      })
  
      let deleteButton = UIAlertAction(title: "Skip", style: .destructive, handler: { (action) -&gt; Void in
          print("Delete button tapped")
      })
  
      alertController.addAction(okButton)
      alertController.addAction(deleteButton)
  
      present(alertController, animated: true, completion: nil)
  }
  </code></pre>