override func viewDidLoad() {
super.viewDidLoad()
let tap = UITapGestureRecognizer(target: self, action: #selector(self.tapOne))
tap.numberOfTapsRequired = 1
self.view.addGestureRecognizer(tap)
}
//收起键盘
@objc func tapOne() {
self.view.endEditing(true)
}