Answers for "close keyboard when textfield touched in swift"

2

xcode hide keyboard when touch background storyboard

override func viewDidLoad()
    {
        super.viewDidLoad()
        
        //Hide Keyboard
        let tap = UITapGestureRecognizer(target: self.view, action: #selector(UIView.endEditing))
        view.addGestureRecognizer(tap)
    }
Posted by: Guest on October-08-2020

Code answers related to "close keyboard when textfield touched in swift"

Code answers related to "Swift"

Browse Popular Code Answers by Language