views:

2088

answers:

1

If I have a custom UITableViewCell that doesn't use the textLabel built in to the cell but instead does its own drawing, how can I change the appearance of the contentView on selection, like it does automatically for the default text (customizable by setting the selectedTextColor:)?

If I change tableView:willSelectRowAtIndexPath:, then it only updates after the blue selection background is up, but not while it's animating, like I want.

+1  A: 

Just don't subclass UITableViewCell and use the default behavior. You can fully customize a cell without any subclassing.

Read this article for more details.

Thomas
That's in fact what I was doing, but your link still pointed me in the right direction. I needed to change the highlightedTextColor for the UILabel.
Ben Alpert
When you talked about "own drawing" I immediately thought subclassing. My bad.Glad you find a solution
Thomas