I have a menu like so:
The normal (unselected) state for each cell is an image, the selected s
Easier than accepted answer:
In your UITableViewCell subclass:
In awakeFromNib
or init
:
self.selectionStyle = UITableViewCellSelectionStyleNone;
Then:
- (void)setHighlighted:(BOOL)highlighted animated:(BOOL)animated
{
[super setHighlighted:highlighted animated:animated];
if (highlighted) {
self.backgroundColor = [UIColor yourHighlightColor];
}
else {
self.backgroundColor = [UIColor yourNormalColor];
}
}