Is there an output editing mode for a UITableView?

A stream is something like this ... The user sees a UITableView, when the user clicks β€œedit”, the user can delete the UITableView cell, after which he clicks to confirm. Which method is called when the user clicks the Finish button? Thanks.

+4
source share
2 answers

In the UITableViewController it is setEditing: with NO as an argument.

+4
source

Overriding the UITableViewController method setEditing: animated: you will get the message you are looking for.

 - (void)setEditing:(BOOL)editing animated:(BOOL)animated { [super setEditing:editing animated:animated]; if (editing) { // User tapped the edit button } else { // User tapped the done button } } 
+2
source

All Articles