The "Table View" screen is highlighted when the user swipes
I am trying to make a row action for UITableViewCell
and I have a highlighting problem while scrolling. The user doesn't really select a cell, they just swipe to the left.
My shouldHighlightRowAtIndexPath
looks like this:
- (BOOL)tableView:(UITableView *)tableView shouldHighlightRowAtIndexPath:(NSIndexPath *)indexPath {
// Sets the inner rectangle to the selected color
[cell setCellColorWithString:COLORS_ARRAY[4]];
return YES;
}
And mine editActionsForRowAtIndexPath
will deselect if it's correct, but it's too late: /
Can I get any event when the user starts / stops scrolling left / right?
Any help would be great. Thanks in advance.
+3
source to share
1 answer
You can add a gesture recognizer to a table view, find the cell that corresponds to the swipe touch point, and then highlight it.
See this answer
0
source to share