I want to use the default highlight on a UITableViewCell
when it is tapped. However, I do not want custom subviews (and their subviews) to receive the message to update their highlighted states and therefore disrupt the backgroundColor
property.
Edit
By "subview" I mean any UIView
subclass, not just UITableViewCell
s.
Perhaps this hypothetical situation will better articulate what I'm looking for: I have one UITableViewCell. Call it c. I then add one UIView (call it v) as a subview of c. When I tap c, I want c to become highlighted (standard blue background with white font color), but I do not want v to become highlighted. How do I make this happen?
UITableViewCellSelectionStyle
toUITableViewCellSelectionStyleNone
, this will not work! Please take a closer read at the question. Thank you. – Melitta