Answers for "have keyboard dissmiss on return xcode in storyboard"

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 "have keyboard dissmiss on return xcode in storyboard"

Code answers related to "Swift"

Browse Popular Code Answers by Language