You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This works just fine in normal UITableViewCells. But when using SWTableViewCell, that little copy menu doesn't show up. I put breakpoints at each of these methods but none of them gets fired even.
Can anyone please tell me why this is happening and possibly a way to fix this?
Many thanks.
EDIT 1: I looked through the source files in SWTableViewCell and it seems there's a special long press gesture recognizer class. Since the copy menu appears when long pressing on a cell too, the cause might be this long press gesture is interfering with that, I guess? Is there any way to turn off the SWLongPressGestureRecognizer?
EDIT 2: I commented out the following code block from SWTableViewCell.m file and as expected my issue was resolved.
But I'd rather do this in a non-hackish way because I'm not sure weather that long press is an essential part for the control to work. So my question still stands.
The text was updated successfully, but these errors were encountered:
Hi,
I have implemented the following 3 delegate methods for UITableView to show a copy menu item to copy a cell.
This works just fine in normal UITableViewCells. But when using SWTableViewCell, that little copy menu doesn't show up. I put breakpoints at each of these methods but none of them gets fired even.
Can anyone please tell me why this is happening and possibly a way to fix this?
Many thanks.
EDIT 1: I looked through the source files in SWTableViewCell and it seems there's a special long press gesture recognizer class. Since the copy menu appears when long pressing on a cell too, the cause might be this long press gesture is interfering with that, I guess? Is there any way to turn off the SWLongPressGestureRecognizer?
EDIT 2: I commented out the following code block from SWTableViewCell.m file and as expected my issue was resolved.
But I'd rather do this in a non-hackish way because I'm not sure weather that long press is an essential part for the control to work. So my question still stands.
The text was updated successfully, but these errors were encountered: