2
Good night, fellas
I’m having a little trouble with Uitextfielddelegate. I intend that when the user clicks the return key (Back) the keyboard disappears for a few moments and goes back to textField to write something again. But the Return key is ignored in the execution act and the keyboard does not disappear. from 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
}
}
Good, I tested with this function also worked, however the problem was not in the code. Thanks @Felipe Ricieri
– An. Jorge