Don’t reference nameTextField directly when dismissing the keyboard

This commit is contained in:
Phil Viso 2019-05-19 16:14:23 -05:00
parent 90ea9ebb50
commit 9d72fede05

View File

@ -36,7 +36,7 @@ class DetailAccountViewController: UITableViewController {
extension DetailAccountViewController: UITextFieldDelegate {
func textFieldShouldReturn(_ textField: UITextField) -> Bool {
nameTextField.resignFirstResponder()
textField.resignFirstResponder()
return true
}