1.获取相对应的cell
UITableViewCell *cell = [self.tableViewviewWithTag:tage+100];
2.获取cell的indexPath
NSIndexPath * indexPath = [self.tableViewindexPathForCell:cell];
3.先删除数据,再删除本行cell
[dateArrayremoveObjectAtIndex:tage];
[self.tableViewdeleteRowsAtIndexPaths:[NSArrayarrayWithObject:indexPath]withRowAnimation:UITableViewRowAnimationLeft];
[self.tableViewreloadData];
本文详细介绍了如何在iOS开发中使用UITableView删除指定行的方法,包括获取对应的cell、获取indexPath并进行数据和可视化的更新。
&spm=1001.2101.3001.5002&articleId=50435785&d=1&t=3&u=ea9a11e1b3db48a4b8c577d426185e5d)
200

被折叠的 条评论
为什么被折叠?



