设置UITableViewCell的选中背景颜色和选中字体颜色的方法
- 作者: 尛猫-
- 来源: 51数据库
- 2022-08-17
//设置UITableViewCell的选中背景颜色的方法
UIView *view = [[UIView alloc]init];
view.backgroundColor=[UIColor redColor];
cell.selectedBackgroundView=view;
//设置UITableViewCell的选中字体颜色的方法:
cell.selectedTextColor=[UIColor blackColor];//默认显示为白色
推荐阅读
