我将我的 UILongPressGestureRecognizer 添加到一个单元格中,如下所示:
UILongPressGestureRecognizer *longpressGesture = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(longPressHandler:)];
longpressGesture.minimumPressDuration = 2.5;
longpressGesture.t
[longpressGesture setDelegate:self];
[cell addGestureRecognizer:longpressGesture];
[longpressGesture release];
我想知道 UILongPressGestureRecognizer 被按下了哪个单元格,我无法为其添加标签,是否有一些巧妙的技巧可以找出这些信息?