title: Gather textfield text from a tableview cell (Swift)
body: <p>I have a tableview with one textfield in each cell. I added a target like this:</p>
  
  <pre><code>func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
      let cell = tableView.dequeueReusableCell(withIdentifier: "customLevelCell") as! LevelTableViewCell
  
      cell.cellTextField.addTarget(self, action: #selector(ViewController.TextfieldEditAction), for: .editingDidEnd)
  
      return cell
  }
  </code></pre>
  
  <p>But found out that I'm not able to use the indexpath.row / sender.tag to get the specific textfield text</p>
  
  <pre><code>@objc func TextfieldEditAction(sender: UIButton) {
  }
  </code></pre>
  
  <p>So my question is how can I get the text after the user has edited one of the textfields.</p>
  
  <p>Also how can i get the indexpath.row or sender.tag which will be used to collect the text they added to that specific textfield.</p>