viewdidload()
{
{
let tapRecognizer = UITapGestureRecognizer()
tapRecognizer.addTarget(self, action: #selector(ViewController.didTapView))
self.view.addGestureRecognizer(tapRecognizer)
}func didTapView(){
self.view.endEditing(true)
}
No comments:
Post a Comment