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

如题所述

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

}
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答