iphone - How to select rows while in edit mode? -


I have a UITableView which is editable I I'm making changes through:

< pre> - tableView (zero): (UITableView *) tableView commitEditingStyle: (UITableViewCellEditingStyle) editingStyle forRowAtIndexPath: (NSIndexPath *) indexPath

when in edit mode, I user a I want to be able to choose the line, which will push a new scene. I'm not sure how to do this. I think it would be:

  - (void) tableView: (UITableView *) tableView didSelectRowAtIndexPath: (NSIndexPath *) indexPath  

But how do I Can you? It determines the user is in edit mode or not

Update: When running through the editing mode:

  self.navigationItem.rightBarButtonItem = self.editButtonItem;  

Editing allowsSelectionDuringEditing allow you select the need to set Yes property from UITableView will then call this didSelectRowAtIndexPath message. You can find more information about that property here:

Then, you can see that the user runs the code in the following editing mode:

  - (void) tableView: (UITableView *) tableView didSelectRowAtIndexPath: (NSIndexPath *) indexPath {if (tableView.editing == YES) {// table editing footage - run code here}}  

Comments