Q:

TableViewCell color not changing on tapping

When I am tapping on my table view cell, its background color is not changing to blue. Any reason for this? 
On tapping of a cell, I am putting a check mark on right view of the cell and if I tap on same cell which has the checkmark, cell glows with blue background color but not on the cell which do not contain the checkmark.
I tried 
[iTableView cellForRowAtIndexPath:iIndexPath].selectionStyle = UITableViewCellSelectionStyleBlue;

in my 
- (void)tableView:(UITableView *)iTableView didSelectRowAtIndexPath:(NSIndexPath *)iIndexPath {

but it is not helping.

A:

Try setting the cell's selectionStyle in tableView:cellForRowAtIndexPath:
- (UITableViewCell *)tableView:(UITableView *)aTableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    // Cell setup

    cell.selectionStyle = UITableViewCellSelectionStyleBlue; // or Gray/None

    return cell;
}

