01->选中UITableViewCell后,Cell中的UILabel的背景颜色变成透明色

138 阅读1分钟

解决方案有两种

方法一 -> 新建一个UILabel类, 继承UILabel, 然后重写 setBackgroundColor: 方法, 在这个方法里不做任何操作, 让UILabel的backgroundColor不发生改变.










写在最后, 感谢参考的出处:

不是谢志伟

StackOverflow: UITableViewCell makes label's background clear when highlighted