I have a custom UITableViewCell
with a UILabel
and a UITextView
in it.
I want the text for both of these to appear white when the
Found it and it was a lot easier than I thought. Just need to use the UITableViewCell
setHighlighted
method.
- (void)setHighlighted:(BOOL)highlighted animated:(BOOL)animated {
[super setHighlighted:highlighted animated:animated];
if (highlighted) {
[self.myTextView setTextColor:[UIColor whiteColor]];
} else {
[self.myTextView setTextColor:[UIColor blackColor]];
}
}