55

I have a UITableView where when I put it in editing mode, I want selective rows to be selectable, however, they are not. Is there a way I can force them to be selectable?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
skylerl
  • 4,030
  • 12
  • 41
  • 60

2 Answers2

140

Set the UITableView property allowsSelectionDuringEditing to YES.

Pang
  • 9,564
  • 146
  • 81
  • 122
gerry3
  • 21,420
  • 9
  • 66
  • 74
  • 11
    also for actions you could do `if (tableView.editing == YES)` in `didSelectRow`. Just a tip. – Souljacker Jun 17 '12 at 16:56
  • 1
    This can also be set in interface builder (see http://stackoverflow.com/questions/174309/uitableview-didselectrow-while-editing) – Symmetric Aug 15 '12 at 18:26
0

Set "Editing" property to "Single Selection During Editing"

ayalcin
  • 877
  • 1
  • 8
  • 16