//去除点击后的效果 有颜色消失的效果
//一
[tableView deselectRowAtIndexPath:indexPath animated:YES];
//二 没有颜色消失的效果
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
// 2松开手颜色消息 可以自定制
[cell setSelectionStyle:UITableViewCellSelectionStyleNone];
[tableView deselectRowAtIndexPath:indexPath animated:YES];
网友评论