我有一个带有UITableView的UIView作为子视图。当我在视图中添加手势识别器时,我的"表确实选择了行"不再触发,但手势识别器总是被触发?我试图从tableview中删除手势识别器,但它没有效果。
let viewRecognizer = UITapGestureRecognizer(target: self, action: "handleTap")
viewRecognizer.delegate = self
self.view.addGestureRecognizer(viewRecognizer)
//This has no effect!
orderTableView.removeGestureRecognizer(viewRecognizer)