UITableview: How to Disable Selection for Some Rows but Not Others
You just have to put this code into cellForRowAtIndexPath To disable the cell’s selection property: (while tapping the cell) cell.selectionStyle = UITableViewCellSelectionStyleNone; To enable being able to select (tap) the cell: (tapping the cell) // Default style cell.selectionStyle = UITableViewCellSelectionStyleBlue; // Gray style cell.selectionStyle = UITableViewCellSelectionStyleGray; Note that a cell with selectionStyle = UITableViewCellSelectionStyleNone; will … Read more