ios - 删除左侧没有红色默认删除按钮的 TableView 单元格

标签 ios uitableview

如何在左侧没有红色默认删除按钮的情况下删除表格 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/

相关文章:

ios - 如何让 UIImageView 填充 UITableViewCell?

ios - UITableViewCell 背景 View 图像未下载并显示正确的图像

ios - 调用 indexPathForCell 时崩溃

ios - 设置添加到表格 View 中单元格的图像的大小

ios - 使用可失败的初始化程序崩溃

ios - 如何在 iOS 中将 kCVPixelFormatType_420YpCbCr8BiPlanarFullRange 缓冲区转换为 UIImage

iphone - objectAtIndex :0] numberOfObjects] > fetchLimit

ios - 未调用 cellForRowAtIndexPath 但调用了 numberOfRowsInSection

ios - 已启用 userInteraction 但未调用按钮操作

iOS HTML 重写?