gpt4 book ai didi

ios - 表格 View 单元格默认背景颜色 - 什么设置默认颜色?

转载 作者:行者123 更新时间:2023-11-28 22:14:10 25 4
gpt4 key购买 nike

当我加载 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/

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