我想为UITableViewCell
创建行动操作,但在滑动时出现了高亮问题。用户并没有真正选择单元格,而是向左滑动。
我的shouldHighlightRowAtIndexPath
代码如下:
- (BOOL)tableView:(UITableView *)tableView shouldHighlightRowAtIndexPath:(NSIndexPath *)indexPath {
// Sets the inner rectangle to the selected color
[cell setCellColorWithString:COLORS_ARRAY[4]];
return YES;
}
我的editActionsForRowAtIndexPath
如果需要的话会取消突出显示,但是它调用太晚了 :/
当用户开始/停止向左/右滑动时,我能得到任何事件吗?
任何帮助都将是伟大的。提前感谢。