使用 UITableViewRowActions 时保持选择

Keeping selection when using UITableViewRowActions

我在使用 tableView:editActionsForRowAtIndexPath: 或默认的编辑删除按钮时注意到了这一点。当滑动单元格以显示操作菜单时,UITableView 似乎会自动 取消选择 当前选定的单元格。

有什么方法可以禁用此行为,并在打开此菜单时保持选择? tableView.allowsSelectionDuringEditing 似乎不起作用。

TB;NOA(可惜没人回答)。我最终使用 NSArray 来跟踪选择的内容。