views:

424

answers:

1

hi,

I'm wondering how to change the blue highlight/selection color of a UITableViewCell, any ideas?

Thomas

+2  A: 

You can change the highlight color in several ways.

  1. Change the selectionStyle property of your cell. If you change it to UITableViewCellSelectionStyleGray, it will be gray.

  2. Change the selectedBackgroundView property. Actually what creates the blue gradient is a view. You can create a view and draw what ever you like, and use the view as the background of your table view cells.

zonble
cool, found a good explanation and example here :http://cocoawithlove.com/2009/04/easy-custom-uitableview-drawing.html
Thomas Joos