ios中怎么实现cell被点击过变灰色

2025-02-23 23:03:39
推荐回答(1个)
回答1:

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
[tableView deselectRowAtIndexPath:indexPath animated:YES];// 取消选中

}