I have a UIView with a UITableView as subview. When I add a gesture recogniser to the view, my "table did select row" is not triggered anymore, but the gesture recogniser is always triggered? I have tried to remove the gesture recogniser from the tableview, but it has no effect.
let viewRecognizer = UITapGestureRecognizer(target: self, action: "handleTap")
viewRecognizer.delegate = self
self.view.addGestureRecognizer(viewRecognizer)
//This has no effect!
orderTableView.removeGestureRecognizer(viewRecognizer)
Have you set the cancelsTouchesInView
to NO
for the UIView
?
See documentation
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.