title: By clicking a cancel button in the cell to delete that cell , and also delete the cell by editActionsForRowAt method
body: <p>With <code>UITableView</code> edit method it working fine, but by using <code>UIButton</code> it's not working.</p>
  
  <pre><code>func tableView(_ tableView: UITableView, editActionsForRowAt indexPath: IndexPath) -&gt; [UITableViewRowAction]? {
      let deleteAction = UITableViewRowAction(style: .normal, title: "Delete") { (deleteAction, indexPath) in
          deleteApm(Id: myString)
          self.AArrayList.remove(at: indexPath.row)
          tableView.deleteRows(at: [indexPath], with: .fade)
      }
      return [deleteAction]
  }
  
  func deleteApm(Id:String)
  {
      //...................................
  }
  
  @IBAction func myButt(_ sender: UIButton) {
      let cancelBtn = sender.tag
  }
  
  func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell
  {
      let cell = tableView.dequeueReusableCell(withIdentifier: "ACell", for: indexPath) as! ATableViewCell
      cell.cancelBtn.addTarget(self, action: #selector(self.myButt(_:)), for: .touchUpInside)
      return cell
  }
  </code></pre>
  
  <p>Using this i called the same delete method in button but the delete not working using <code>UIButton</code>.
  using <code>UITableView</code> its working fine...</p>