gpt4 book ai didi

ios - UITableView deselectRowAtIndexPath 淡化为白色而不是 contentView.backgroundColor?

转载 作者:行者123 更新时间:2023-11-28 22:11:19 24 4
gpt4 key购买 nike

我有一个表格 View ,其中包含一堆各种漂亮颜色的单元格。当我点击一个时,它突出显示很好,但是当我调用 deselectRowsAtIndexPaths 时,淡出动画从突出显示的颜色变为白色,而不是单元格的 contentView.backgroundColor。知道如何解决这个问题吗?它看起来非常丑陋,细胞从灰色逐渐变为白色,然后突然变成橙色。

最佳答案

如果您在单元格本身而不是其 contentView 上设置 backgroundColor,它应该可以工作。

关于ios - UITableView deselectRowAtIndexPath 淡化为白色而不是 contentView.backgroundColor?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22858923/

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