Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 UITableView 上使用自定义 UIGestureRecognizer。
一旦我将 GestureRecognizer 添加到视图中,表格单元格内的按钮就会停止工作(尽管将可见状态更改为按下,但不会调用任何操作)。
而且我正在使用[self setCancelsTouchesInView:NO];并且没有识别器链接或其他任何东西。
[self setCancelsTouchesInView:NO];
有什么想法吗?
此致,
亚历克斯
您可能遇到了 delaysTouchesEnded 的问题。将其设置为 NO 可能会解决您的问题。看看文档。
http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIGestureRecognizer_Class/Reference/Reference.html