ios swift3 点击空白收起键盘
2017-01-02 本文已影响258人
工匠良辰
点击空白处,取消界面
// swift3 点击空白收起键盘
override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
self.view.endEditing(false)
}
点击空白处,取消界面
// swift3 点击空白收起键盘
override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {
self.view.endEditing(false)
}