What's the best way of adding an image for the touch state in a UITableViewCell
?
I know how to set the cell.selectionStyle
but I actually need to add an image (a different one for each row) just when the user is touching it (and it pushes the new view in) Like a "Button State Touched".
What's the best way of achieving this? I tried with
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { }
Or would I have to do it inside
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
Thanks!