Answers for "hide the keyboard clicing on outside of hte view swift 5"

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 "hide the keyboard clicing on outside of hte view swift 5"

Code answers related to "Swift"

Browse Popular Code Answers by Language