search

Home  >  Q&A  >  body text

objective-c - custom cell

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?

PHPzPHPz2883 days ago855

reply all(1)I'll reply

  • PHP中文网

    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.

    reply
    0
  • Cancelreply