我有一个自定义的 tableViewCell。我想通过突出显示来指示用户触摸。单元格选择样式为 UITableViewCellSelectionStyleBlue
。在父 Controller 中,我设置了 self.clearsSelectionOnViewWillAppear = YES
。
我应该可以走了。没有。选择仍然粘在单元格上。我想要的是仅在触地期间的选择指示。修饰后外观应立即恢复为未选择的外观。
我该怎么做?
干杯,
道格
最佳答案
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
[tableView deselectRowAtIndexPath:indexPath animated:YES];
}
关于ios - UITableViewCell。如何在着陆期间突出显示单元格?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10401949/