UITableView didSelectRow when editing?

I am creating an interface similar to the built-in view of the Weather application flags, or the Alarms view of the Clock application in edit mode. The table view is always in edit mode, so the icon on the left appears on the left side of each cell.

When the table view is in edit mode, my delegate does not receive didSelectRowAtIndexPath notifications. It receives accessoryButtonTappedForRowWithIndexPath notifications, but that’s not what I want to do. I want my rows to remain accessible, even if the table view is in edit mode.

Any ideas on how I can do this?

Thank,

PS Hooray for the raised NDA. =)

+41
iphone cocoa-touch uitableview
06 Oct '08 at 13:35
source share
2 answers

Set table.allowsSelectionDuringEditing to YES .

+101
Oct 06 '08 at 14:49
source share

You can also set this in the attribute inspector. Make sure you select the table view, not the view controller, and select "Single selection during editing" from the "Edit" drop-down list: enter image description here

+11
Feb 05 2018-12-12T00:
source share



All Articles