Category Archives: keyboard disappear by clicking background

keyboard disappear by clicking background

keyboard disappear by clicking background
Note : do not put this code in ButtonFunc because we are here about BackGround,
override func touchesBegan(_ touches: set<UITouch>, with event: UIEvent?){
self.view.endEditing(true)
}

Advertisements