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

标签 iphone ios uitableview

我设置了单元格[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/

相关文章:

ios - 如何以编程方式创建 NSComboBox

iphone - iOS tabBarController 不显示

iphone - 如何使tableview的滚动条在比table框架更小的矩形中滚动?

ios - estimatedHeightForRowAtIndexPath 和 heightForRowAtIndexPath 之间的区别?

swift - 如何向 UITableView 单元格添加视差效果

iphone - 在 iPhone 应用程序中下载多个文件( objective-c )

ios - App Store 视频预览 - 本地化

iphone - 正确使用 NSInitationOperation 和 NSOperationQueue

iphone - 如何使用 Reachability 检测网络变化?

ios - 拦截 UITextField touch