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
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
Another way to do this, that doesn't require an image file is:
UIView *bgView = [[UIView alloc] init];
// At least on iOS6 you don't to size the view for this to work.
bgView.backgroundColor = [UIColor grayColor];
aCell.selectedBackgroundView = bgView;
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