I am trying to find which textfield is active for when the I move the view when the keyboard rises. I am trying to set a property in my viewcontroller from the subview of a
assuming your textfields are all the same (i.e. all currency or text) and do not require any special formatting, I would suggest the following:
First, have an optional textField variable. For example:
var currentTextField: UITextField?
Then add the following:
func textFieldDidBeginEditing(textField: UITextField) {
currentTextField = textField
}
Now you can do whatever you want with the 'active' text field and you do not need to track any tags unless you need some specific formatting operation.