【发布时间】:2015-07-06 06:13:07
【问题描述】:
我尝试为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 会取消突出显示,但它调用得太晚了:/
当用户开始/停止向左/向右滑动时,我可以得到任何事件吗?
任何帮助都会很棒。 提前致谢。
【问题讨论】:
标签: ios iphone uitableview uitableviewrowaction