cuốn sách gpt4 ai đã làm

iphone - Làm cách nào để thay đổi màu của Chế độ xem đã chọn trong UITableViewCell?

In lại Tác giả: Walker 123 更新时间:2023-11-28 18:06:59 32 4
mua khóa gpt4 Nike

选中单元格时如何改变灰色?

nhập mô tả hình ảnh ở đây

câu trả lời hay nhất

当用户点击选中的行

(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath    
{
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
cell.contentView.backgroundColor = [UIColor colorWithRed:1.0 green:0.0 blue:0.0 alpha:1.0];
}

关于iphone - 如何更改 UITableViewCell 选定 View 的颜色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11572458/

32 4 0
Chứng chỉ ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com
Xem sitemap của VNExpress