开发者

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
    }
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜