How to remove the UITableViewCell selection color

If you want to remove the pesky blue highlighting when a a row is selected in your UITableView, make sure to the add the following line in your cellForRowAtIndexPath delegate method.

// Customize the appearance of table view cells.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    //...    
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
   // Set up the cell...

    return cell;

Happy iPhone development!

Advertisements
How to remove the UITableViewCell selection color

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s