Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sunyunfei opened this issue Feb 20, 2017 · 1 comment
Open

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

sunyunfei opened this issue Feb 20, 2017 · 1 comment

Comments

@sunyunfei
Copy link

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

@nixzhu
Copy link
Owner

nixzhu commented Feb 20, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants