如果我将手势识别器添加到名为 的表格单元格cell
中,例如:
UILongPressGestureRecognizer *_longPressRecognizer = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(cellGestureRecognized:)];
_longPressRecognizer.allowableMovement = 20;
_longPressRecognizer.minimumPressDuration = 1.0f;
[cell addGestureRecognizer:_longPressRecognizer];
[_longPressRecognizer release], _longPressRecognizer = nil;
我是否需要-removeGestureRecognizer:
在某个时候手动调用此单元格,或者当不再使用该单元格时,手势识别器是否会为我移除并释放?