Is there any exit editing mode for UITableView?
The flow is something like that... The user see a UITableView, when the user click the "edit", the user can delete the UITableView's cell, after that, he /she click done to confirm. Which method is called when the user click the done key? Thank yo开发者_如何学编程u.
On UITableViewController
it's setEditing:
with NO
as argument.
By overriding the UITableViewController's setEditing:animated: method, you'll 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
}
}
精彩评论