我正在尝试创建一个UITableView,以便当用户触摸我的法线时,UIViewTableCell另一个UIViewTableCell从右侧以新的单元格格式滑入。这个新UIViewTableCell的不离开UITableView。
UIViewTableCells 是 2 个不同的自定义单元格。
我想知道是否有一种方法可以将具有动画滑动效果的一个交换UITableViewCell为X type另一个?UITableViewCellY type
我查看了以下代码,但我不明白我在哪里放置我的 Cell 信息。
[tableView beginUpdates];
[tableView deleteRowsAtIndexPaths:myIndexPaths
withRowAnimation:UITableViewCellRowAnimationRight];
[tableView endUpdates];
[tableView beginUpdates];
[tableView insertRowsAtIndexPaths:myNewIndexPaths
withRowAnimation:UITableViewCellRowAnimationLeft];
[tableView endUpdates];
任何有关如何执行此操作的指导都非常感谢。
PS:我不是在寻找回购。我想了解这是如何完成的。