Good evening, comrades
I'm having a little problem with UITextFieldDelegate. I intend that when the user clicks the return key (Back) the keyboard disappears for a few moments and return the textField to write something again. But the Return and Ignore key in the act of execution and the keyboard does not disappear. of a look at the terminal
import UIKit
class ViewController: UIViewController, UITableViewDataSource, UITableViewDelegate, UITextFieldDelegate {
@IBOutlet weak var itextField: UITextField!
func textFieldShouldReturn(_ textField: UITextField) -> Bool {
itextField.resignFirstResponder()
return true
}
}