简体   繁体   English

PFQueryTableViewController和commitEditingStyle向上滚动

[英]PFQueryTableViewController and commitEditingStyle scroll up

I have a PFQueryTableViewController with food information. 我有一个带有食物信息的PFQueryTableViewController。 When I scroll to the bottom of the table and swipe left (which calls commitEditingStyle), the table scrolls up so I don't see the cell I'm trying to delete anymore. 当我滚动到表格的底部并向左滑动(称为commitEditingStyle)时,表格会向上滚动,因此我看不到要删除的单元格了。 If you have any ideas about what's happening I would really appreciate the help. 如果您对正在发生的事情有任何想法,我将非常感谢您的帮助。

Adding 新增中

- (void)tableView:(UITableView *)tableViewwillBeginEditingRowAtIndexPath:(NSIndexPath *)indexPath{
}
- (void)tableView:(UITableView *)tableView didEndEditingRowAtIndexPath:(NSIndexPath *)indexPath{
}

Solved the problem. 解决了问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM