How can I send another object to textFieldDidChange
function?
regName.delegate = self
regName.addTarget(self, action: "textFieldDidChange:", forControlEvents: UIControlEvents.EditingChanged)
func textFieldDidChange(textField: UITextField, errorLabel: UILabel) {
validateReg(textField.text!, textField: textField, errorLabel: errorLabel)
}