tags:

views:

43

answers:

1

hi all,

can we change the selection color of table view, i.e cell, by default its blue, so, can we change it to any other color?

regards

+2  A: 

this way in code

aCell.selectedBackgroundView = [[[UIImageView alloc] 
      initWithImage:[UIImage imageNamed:@"selectedBackground.png"]] autorelease];

or you can set it in interface builder to gray, I think blue and grey is all that is available without creating a be view

Aaron Saunders
thanks aaron, i already used this snippet, i dont want to give image,cant we just color only. thanks for relpy... appreciated
shishir.bobby
further googling led me to this http://stackoverflow.com/questions/281515/how-to-customize-the-background-color-of-a-uitableviewcell
Aaron Saunders