当我加载 TableView 时,突出显示单元格的默认单元格背景颜色为浅灰色。 如何以及在何处将其更改为另一种颜色?
最佳答案
在方法中设置单元格的selectionStyle:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
// Code to initialize your cell
cell.selectionStyle = UITableViewCellSelectionStyleBlue;
return cell;
}
关于ios - 表格 View 单元格默认背景颜色 - 什么设置默认颜色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22164894/