dev-blog icon indicating copy to clipboard operation
dev-blog copied to clipboard

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

Open sunyunfei opened this issue 8 years ago • 1 comments

译者注:上面这一段的原文是“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:这个方法,只有点击实际进行删除或者编辑操作的时候才会调用吧。

sunyunfei avatar Feb 20 '17 09:02 sunyunfei

我的英文不算好,因此理解可能有偏差,不过这翻译也很久了,如果有更好的翻译,请直接发PR吧!😊

nixzhu avatar Feb 20 '17 10:02 nixzhu