tableview添加点击事件,不影响cell事件
2017-02-23 19:27
369 查看
添加手势,并实现手势的代理方法,不然无法点击cell
func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldReceive touch: UITouch) -> Bool {
if (touch.view?.isKind(of: UITableView.self))! {
return true
}
return false
}
func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldReceive touch: UITouch) -> Bool {
if (touch.view?.isKind(of: UITableView.self))! {
return true
}
return false
}
相关文章推荐
- view添加手势与tableView的cell点击冲突问题
- iOS界面不能点击(tableView 的cell 不能使用点击事件,tableView也不能上下滚动)
- TableView cell的选中事件 与手势点击事件 冲突解决办法
- iOS 为自定义tableView添加button点击事件后获取其序号
- tableView中添加按钮触发不了点击事件的解决办法
- ios tableview cell上面的view添加手势,两个手指同时点击cell上的view的冲突(手势冲突)
- 关于在tableview的footerView上添加button的点击不响应事件
- ios tableView 自定义cell上的按钮点击事件不好用
- iOS界面不能点击(tableView 的cell 不能使用点击事件,tableView也不能上下滚动)
- 给UIImageView添加点击事件
- UIImageView上添加Button不能响应点击事件[转]
- UIImageView上添加Button不能响应点击事件
- ios tableView那些事 (七) 给tableView添加响应事件
- IOS为UIImageView图片添加点击事件
- iOS 为tableview添加新的cell类
- ios tableView那些事(四)tableView添加标题,头尾和改变cell的宽度
- ios tableView那些事(四)tableView添加标题,头尾和改变cell的宽度
- 点击tableView中的cell 相应的改变navgationbar的背景色
- 点击tableview里的cell后改变cell的背景图片
- TableView动态的删除,添加cell