我有一个表,我操纵一个tableViewController(没有笔尖,并且控制器正在幕后创建表) 我试图从表中删除一行基于它的行号;我可以从数组中删除它,我用它来创建cellForRowAtIndexPath中的单元格,但是如果我尝试执行以下操作(与tableView中的代码相同),我得到一个奇怪的错误:commitEditingStyle:forRowAtIndexPath: 它工作正常如何以编程方式删除表格行?
NSIndexPath * indexPath = [NSIndexPath indexPathForRow:i + 1的切入口:1]
[self.tableView deleteRowsAtIndexPaths:[NSArray的 arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationFade];
它给出了一个错误
- [_ WebSafeForwarder forwardInvocation:]
,然后跳出方法,但不会崩溃的应用程序
谁能帮助?
它实际上在代码中的分号 - 剪切和粘贴错误! – 2010-04-21 16:03:56