问题描述
我正在构建一个界面,就像内置的天气应用程序的翻转视图,或者编辑模式下的时钟应用程序的闹钟视图。表视图始终处于编辑模式,因此删除图标出现在每个单元格的左侧。
I'm building an interface much like the built-in Weather application's flipside view, or the Alarms view of the Clock application in editing mode. The table view is always in editing mode, so the delete icon appears on the left side of each cell.
当表视图处于编辑模式时,我的委托不会t接收 didSelectRowAtIndexPath
通知。它接收 accessoryButtonTappedForRowWithIndexPath
通知,但这不是我想要做的。我想让我的行保持可选择,即使表视图处于编辑模式。
When the table view is in editing mode, my delegate doesn't receive didSelectRowAtIndexPath
notifications. It receives accessoryButtonTappedForRowWithIndexPath
notifications, but that's not what I want to do. I want my rows to stay selectable, even when the table view is in editing mode.
有关如何完成此任务的任何想法?
Any ideas on how I can accomplish this?
感谢,
PS Hooray为解除NDA。 =)
P.S. Hooray for the lifted NDA. =)
推荐答案
设置 table.allowsSelectionDuringEditing
到 YES
。
这篇关于UITableView didSelectRow在编辑时?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!