gpt4 book ai didi

iphone - UITableView 编辑时如何取消选定单元格突出显示的背景色

转载 作者:行者123 更新时间:2023-11-29 04:43:15 26 4
gpt4 key购买 nike

我设置了单元格[cell.contentView addSubview:chatView]。chatView有一个UIImageView、两个UILabels和UILabel backgroundColor = [UIColor clearColor].

当编辑表格时,我选择单元格,单元格突出显示,UILabel backgroundColor 更改突出显示的颜色。如何取消backgroupColor。

最佳答案

theLabel.layer.backgroundColor = myColor

这工作得很好。

关于iphone - UITableView 编辑时如何取消选定单元格突出显示的背景色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10038465/

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