gpt4 book ai didi

ios - UITableViewCell。如何在着陆期间突出显示单元格?

转载 作者:IT王子 更新时间:2023-10-29 08:10:10 24 4
gpt4 key购买 nike

我有一个自定义的 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com