Comment ce code -quel est le sens du code? UITextFieldDelegate
func textFieldShouldReturn(_ textField: UITextField) -> Bool {
if textField.resignFirstResponder() {
textField.text = nil
}
return true
}
func textFieldDidEndEditing(_ textField: UITextField) {
theTextField.text = textField.text
}
Je ne comprends pas, je sais ce qu'il fait mais j'ai besoin d'aide pour comprendre ce que signifient les codes. Je vous remercie! :)
Merci pour l'aide! – bernan