Answers for "hiding keyboard for all textfield 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 "hiding keyboard for all textfield in swift"

Code answers related to "Swift"

Browse Popular Code Answers by Language