1.当前输入框辞去第一响应者
uiTextField.resignFirstResponder()
self.view.endEditing(true)
3.点击空白处隐藏键盘 重写touch方法
override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {
self.view.endEditing(true)
}
1.当前输入框辞去第一响应者
uiTextField.resignFirstResponder()
self.view.endEditing(true)
3.点击空白处隐藏键盘 重写touch方法
override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {
self.view.endEditing(true)
}