After longpress, UITableViewCell need two clicks to get selected
-
19-10-2022 - |
문제
I'm implementing long press in UITableViewCell
using following code. Everything works fine except that when long press is over I have to click two times on a cell to select it.
UILongPressGestureRecognizer *longPress = [[UILongPressGestureRecognizer alloc] initWithTarget:self action:@selector(handleLongPress:)];
longPress.minimumPressDuration = 0.5;
longPress.delegate = self;
[cell addGestureRecognizer:longPress];
Does anybody knows the reason behind this behavior ? Thanks.
올바른 솔루션이 없습니다
제휴하지 않습니다 StackOverflow