In my application, I use a shortcut to display the specified color by setting the background color in a custom one UITableViewCell(since this color can be changed according to incoming data from the Internet), after viewDidLoad everything is fine, but when this cell is (highlighted), the color is cleared.
After searching, I found out that someone should subclass UITableViewCelland overwrite the method setHighlightso as not to clear the background color of the label. I tried but no luck.
So does anyone know how to do this? the correct way to subclass UITableViewCelland then use it in UITableViewControllerorder not to clear the background color of the label? Please help me.
Thanks for any advice.
source
share