Alex Rivera | Logout

How to change the blue highlight color of a UITableViewCell?

Asked 2010-03-31T14:25:27.783
139

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

Edit
Report

1 Answer

219

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.

answered 2010-03-31T15:09:46.683

Your Answer