0

I have UITableView. When I select/press a UITableViewCell, not only background color but foreground color also changes. Attaching the images :

Before clicking UITabelViewCell

After clicking UITabelViewCell

Edit : I want an effect similar to this.

Want an effect like this

sanjeev
  • 1,343
  • 3
  • 16
  • 28

1 Answers1

0

Found answer here : https://stackoverflow.com/a/12838659/1276016

We need to manually change the background color of each UIView back to its normal color in setHighlighted function.

Community
  • 1
  • 1
sanjeev
  • 1,343
  • 3
  • 16
  • 28