Don’t reference nameTextField directly when dismissing the keyboard
This commit is contained in:
parent
90ea9ebb50
commit
9d72fede05
@ -36,7 +36,7 @@ class DetailAccountViewController: UITableViewController {
|
||||
extension DetailAccountViewController: UITextFieldDelegate {
|
||||
|
||||
func textFieldShouldReturn(_ textField: UITextField) -> Bool {
|
||||
nameTextField.resignFirstResponder()
|
||||
textField.resignFirstResponder()
|
||||
return true
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user