取消选中cell的灰色
//取消选中cell的灰色的效果
//tableView 的代理方法
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
[tableView deselectRowAtIndexPath:indexPath animated:NO];
}
或者
cell.selectionStyle = UITableViewCellSelectionStyleNone;
网友评论