When editing, `UITableView` does not call didSelectRowAtIndexPath ??

前端 未结 4 705
遥遥无期
遥遥无期 2020-12-29 18:11

I have a UITableViewController where the user should be able to edit the items. In order to enable editing I use this :

self.navigationItem.righ         


        
4条回答
  •  隐瞒了意图╮
    2020-12-29 18:39

    Do you set the self.editing = YES when the edit button is tapped?

    When in editing mode this method is called, instead of didSelectRow when you tap a row:

    tableView:commitEditingStyle:forRowAtIndexPath:.
    

提交回复
热议问题