I added a pan gesture to the cell to achieve sliding deletion, but whenever I slide the cell, the cell will be selected. Is there a way to prevent the cell from being selected when I slide the cell?
PHP中文网2017-05-02 09:25:26
How to delete a cell if it is not selected? So when you say selected cell, do you mean that the cell has the effect of being selected? If this is the case, you can pass
cell.selectionStyle = UITableViewCellSelectionStyleNone;
Remove the selection effect.