title: Pass editingDidChange Text Value From TableView Cell to Model
body: <p>I have a TableView with multiple sections and would like to use editingDidChange in each cell to update the text fields.  I can pass data easily enough from the UITableView cell's class to the ViewController that will update the array model, however I can't think of a way to pass along info on which cell is being edited (and therefore which index in the array should be changed).  </p>
  
  <p>I've used sender.tag in similar scenarios before, however the tag's only count up from each section when headers are involved.  How can I tell the ViewController what cell is being edited?</p>
  
  <p>Thanks!</p>
  
  <pre><code>//TableView cell class
  
      @IBAction func textField(_ sender: UITextField) {
        updateTextForDelegate.didUpdate(text: sender.text ?? "") //using editingDidChange
      }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/Xz9ba.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Xz9ba.png" alt="enter image description here"></a></p>