I have a table view with multiple sections and don't know how to change the background color when i touch that row.
I've found this link about table cells but it is addressed to tables with only one section :
changing cell background on click on cell in iphone.
cell.selectedBackgroundView = [[ UIView alloc] init];
[cell.selectedBackgroundView setBackgroundColor:[UIColor purpleColor]];
if i use the code from this link, cells that are rounded (the first and last in every section) will have a rectangle on finger over which doesn't look good.
How can i make this rectangle curved around the edges for the first and last row in every section ?