title: How to update each custom tableview cell data at the same time?
body: <p>I am using Xcode 8.2.1 with Swift 3. I have one custom UITableViewCell containing a UITextView. When I type into the <code>textView</code>, the custom cell automatically grows. This part is working fine. I also want to update my other cells with the same data when I type in a specific cell. For example:</p>
  
  <p>When I type text into the 5th cell, automatically enter the same data in the 11th, 15th and 18th cells. Those cells must be grown automatically as well. I've added data to the specific indexes of the array. But it doesn't get reflected in the <code>tableView</code>. How do I achieve this functionality?</p>
  
  <p>Please go through following code I've implemented so far. This <code>updateCellHeight</code> method is a custom delegate method. This method is called when the user types in the <code>textView</code>.</p>
  
  <pre><code>func updateCellHeight(indexPath: IndexPath, comment: String) {
  
      let currentCellLyricVal = self.traduzioneArray[indexPath.row]["rics"]
      tempIndexArray.removeAll()
  
      for (index,element) in traduzioneArray.enumerated() {
  
          let lyricVal = element["rics"]
          if currentCellLyricVal == lyricVal {
              tempIndexArray.append(index)
          }
      }
      for index in tempIndexArray {
          self.traduzioneArray[index]["ione"] = comment
          self.lyricsTableView.beginUpdates()
          self.lyricsTableView.endUpdates()
      }
  }
  
  func textViewDidChange(_ textView: UITextView) {
      self.delegate.updateCellHeight(indexPath: self.cellIndexPath, comment: textView.text)
  }
  </code></pre>