How to get user input from UItextfield and add it to an array?
问题 I am working in swift. I have a textfield that is in a tableview cell. I am trying to store the text of each text field in the tableview so they when the user adds or deletes a row, and then the tableview reloads data, that the text fields stay filled in with the appropriate data. I tried adding a textfielddidendeditting function but for some reason it is not being called. EDIT: Here is my code: tableViewController: import UIKit var rowCount = 0 var textArray = [String]() class