Skip to content

UITableView定义滑动按钮的一个小问题 #27

@sunyunfei

Description

@sunyunfei
译者注:上面这一段的原文是“This is the same as before, except this time we need to grab the cell from the table view using cellForRowAtIndexPath:.”,按照我的理解,滑动应该调用 tableView:commitEditingStyle:forRowAtIndexPath: ,这样才能执行我们新添加的语句。

个人感觉这一段有一点不合适。滑动不会执行tableView:commitEditingStyle:forRowAtIndexPath:这个方法,只有点击实际进行删除或者编辑操作的时候才会调用吧。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions