【发布时间】:2025-12-24 05:35:11
【问题描述】:
我有一个表,我正在使用 tableViewController 操作(没有笔尖,控制器正在幕后创建表) 我正在尝试根据行号从表中删除一行;我可以从用于在 cellForRowAtIndexPath 中创建单元格的数组中删除它,但是如果我尝试执行以下操作,我会收到一个奇怪的错误,这与 tableView:commitEditingStyle:forRowAtIndexPath 中的代码相同: 在哪里可以正常工作
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:i+1 inSection:1]
[self.tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationFade];
报错
-[_WebSafeForwarder forwardInvocation:]
然后跳出方法但不让app崩溃
谁能帮忙?
【问题讨论】:
标签: iphone uitableview