I am trying to add up the total of all of the textfields using an outlet collection the problem is put in all of the textfields programmatically so I cannot drag and drop it into the collection. How can I do this programmatically? You can see what I was trying to do but it is causing a compiling error.
var a28 = UITextField()
var a29 = UITextField()
@objc func hitA31(_ textField: UITextField) {
var fullTotal = 0
for view in a28,a29 {
if let text = view.text, let num = Int(text) {
fullTotal += num
}
}
a31.text = String(fullTotal)
}