UITableView tap to deselect cell

前端 未结 14 1790
野性不改
野性不改 2020-12-16 10:37

I have a UITableViewCell that is selected when tapped. During this selected state, if the user taps the cell again, I want the cell to deselect.

I can\

14条回答
  •  臣服心动
    2020-12-16 11:21

    Maybe my question wasn't specific enough, but the two answers are a bit wide of what I was after.

    It seems this isn't possible, and I went with a gesture recognizer of the cell to manually set selected / unselected state.

提交回复
热议问题