I want to exclude UITableViewCell’s subview(viewz) from changing background when I selected it.
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
cell.selectionStyle = UITableViewCellSelectionStyleBlue;
UIView *viewz = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 30, 30)];
viewz.backgroundColor = [UIColor redColor];
[cell.contentView addSubview:viewz];
Cell didn’t selected. Everything all right.
http://img32.imageshack.us/img32/1599/screenshot20121129at123.png
Cell has changed color to blue. It’s ok. But I do not want that my viewz changing background color to blue. How can I do this?

Add an empty implementation of the setSelected:animated: method to your UITableViewCell subclass