Answers for "how to close heabord on return button ios 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 close heabord on return button ios swift"

Code answers related to "Swift"

Browse Popular Code Answers by Language