Errors I'm getting:-
I have 81 UITextFields
that I want to add another Send Event too. Currently, they are all set to trigger one function for "Did End on Exit" but I want to add "Editing Changed" to all of them in order to call the same function. I know I could draw lines for all 81 TextFields, but I know there is the addTarget function, but I am not sure how it works. TIA.
//My attempt at addTarget
textField.addTarget(self, action: #selector(editedBox(sender:)), for: .editingChanged)
//Creates outlet for boxes
@IBOutlet var textFieldCollection: [UITextField]!
//Action if a box is edited
@IBAction func editedBox(_ sender: AnyObject) {
}