Answers for "dismissing keyboard on return key 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 "dismissing keyboard on return key swift"

Code answers related to "Swift"

Browse Popular Code Answers by Language