Hide the circle on UITableView with multiple selection

ios7, objective-c, uitableview

Solution

You have to implement the `tableView:canEditRowAtIndexPath:` method in your table view datasource. It will let you prevent the cells you want to be editable and thus the circles not to be shown.

Beware that setting `cell.selectionStyle = UITableViewCellSelectionStyleNone;` does NOT prevent the cell to be selected. It just removes any visual clue on a selected cell.

Problem

I have a `UITableView` that hast multiple selection enabled. Some of my cells are not to be selected. For those I implement: in the `tableView:cellForRowAtIndexPath:` I set `cell.selectionStyle = UITableViewCellSelectionStyleNone;` and in `tableView:didSelectRowAtIndexPath:` I call `[self.tableView deselectRowAtIndexPath:indexPath animated:NO];`. This works fine. My only caveat is that the little circle left of the cell still appears. It does not get checked when a user taps the cell, but I would like for it not to be shown, when a cell is "unselectable". How can I hide those circles for certain cells? Thanks

Original source