Answers for "how to retract keyboard when hit done xcode"

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 retract keyboard when hit done xcode"

Code answers related to "Swift"

Browse Popular Code Answers by Language