Answers for "how to hide keyboard when pressing the return key uitextview swift"

1

swift dismiss keyboard on return

extension UIViewController: UITextFieldDelegate{
    public func textFieldShouldReturn(_ textField: UITextField) -> Bool {
        textField.resignFirstResponder()
        return true;
    }
}

override func viewDidLoad() {
    super.viewDidLoad()
    textField.delegate = self
}
Posted by: Guest on March-03-2020

Code answers related to "how to hide keyboard when pressing the return key uitextview swift"

Code answers related to "Swift"

Browse Popular Code Answers by Language