如何在左侧没有红色默认删除按钮的情况下删除表格 View 的单元格(在另一个按钮上执行删除操作),所以任何人都可以帮助我
最佳答案
[listTableView beginUpdates];
[listTableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:[NSIndexPath indexPathForRow:rowNumber inSection:0]]
withRowAnimation:UITableViewRowAnimationLeft]; // there are a few other animations, check out the enum
// Remove the cell's contents from your data source, for example:
// [contentsArray removeObjectAtIndex:rowNumber];
[listTableView endUpdates];
关于ios - 删除左侧没有红色默认删除按钮的 TableView 单元格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9199229/