How can i remove the table view cell highlighted color in edit mode. I am using the table view property “allowsMultipleSelection” in edit mode. By default the cell is highlighted in a light blue color. Although we can change the highlighted color i have not seen any option to remove that highlighted color property. I want my table view cell checkbox selection only and not highlighted mode.
"cell.SelectedBackgroundView" allows to change the cell's background color when its selected, but i want to have only checkbox selection and no color for the cell in selected state.
Attached image of the screen. In my case the cell has a background image so on selection also I want the cell background to be same and only the checkbox selected.
cell?.selectionStyle = .none
incellForRowAtIndexPath
or you can disable the selection of cell from storyboard too. – UrfaselectionStyle
only denotes the style, You have few options to highlight your cell on selection. If you sets it to.none
, it will only prevent to show colour on selection. But selection will work fine and you can see that by applyingbreakpoint
indidSelectRowAtIndexPath
– Urfa