---
title: "How can I disable the UITableView selection highlighting?"  
description: "How can I disable the UITableView selection highlighting?"  
author: "Samuel Fernandes"  
published: 2015-04-25  
updated: 2015-04-25  
canonical: https://www.mindstick.com/forum/23138/how-can-i-disable-the-uitableview-selection-highlighting  
category: "iphone"  
tags: ["iphone", "ios", "objective c"]  
reading_time: 1 minute  

---

# How can I disable the UITableView selection highlighting?

When you [tap](https://answers.mindstick.com/qa/106164/tips-for-winning-in-mlb-tap-sports-baseball-2022) a [row](https://www.mindstick.com/forum/1212/this-row-already-belongs-to-this-table) in a UITableView, the row is highlighted and selected. Is it [possible to disable](https://www.mindstick.com/forum/34431/is-it-possible-to-disable-authorization-on-one-action-in-an-mvc-controller) this so tapping a row does nothing?

## Replies

### Reply by Anonymous User

For me, the following worked fine:\

```
tableView.allowsSelection = NO;
```

\
All you have to do is set the selection style on the UITableViewCell instance using either:\

```
cell.selectionStyle = UITableViewCellSelectionStyleNone;
```

or\

```
[cell setSelectionStyle:UITableViewCellSelectionStyleNone];
```

Further, make sure you either don't implement -tableView:didSelectRowAtIndexPath: in your table view delegate or explicitly exclude the cells you want to have no action if you do implement it.


---

Original Source: https://www.mindstick.com/forum/23138/how-can-i-disable-the-uitableview-selection-highlighting

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
