更改在自定义UITableViewCell上的背景色不会显示

问题描述

|| 我正在尝试更改自定义单元格的背景色,这是我的代码:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{

    UITableViewCell *cell = [tableView cellForRowAtIndexPath: indexPath];
    if (...condition...) {
        cell.backgroundColor = [UIColor clearColor];
    } else {
        cell.backgroundColor = [UIColor yellowColor];
    }
}
现在,我进行了调试,并且cell.backgroundColor = [UIColor clearColor];被执行,但单元格保持黄色!!!这仅在某些单元格中发生(黄色并重新使用的单元格)。 有什么建议么?     

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)