let tapGes = UITapGestureRecognizer(target: self, action: #selector(tapTableView))
tapGes.cancelsTouchesInView = false
self.tableView.addGestureRecognizer(tapGes)
然后实现对应的方法
let tapGes = UITapGestureRecognizer(target: self, action: #selector(tapTableView))
tapGes.cancelsTouchesInView = false
self.tableView.addGestureRecognizer(tapGes)
然后实现对应的方法
本文标题:tableView 点击空白处隐藏键盘
本文链接:https://www.haomeiwen.com/subject/ngceuttx.html
网友评论