0
如何發送另一個對象到textFieldDidChange
函數?Swift 2 - 發送對象到功能
regName.delegate = self
regName.addTarget(self, action: "textFieldDidChange:", forControlEvents: UIControlEvents.EditingChanged)
func textFieldDidChange(textField: UITextField, errorLabel: UILabel) {
validateReg(textField.text!, textField: textField, errorLabel: errorLabel)
}
的[附加參數斯威夫特button.addTarget行動]可能的複製(http://stackoverflow.com/questions/24814646/attach-parameter-到按鈕addtarget-行動中,SWIFT) –