滚动表时不调用touchesEnded

时间:2012-07-10 08:18:13

标签: iphone objective-c uitableview three20

我有一个TTTableViewController表,其中包含TTTableLinkedItemCell个单元格。

在单元格中我有-(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event;函数。

仅在单击表时调用此函数,但在滚动时不调用此函数。 是否有其他功能可以拦截滚动?

1 个答案:

答案 0 :(得分:1)

您可以使用UIGestureRecognizer识别某些操作,如点按,移动,旋转和缩放 请找到以下网址
http://www.icodeblog.com/2010/10/14/working-with-uigesturerecognizers/