0

我创建了一个标准的 UITableView,一个单元格的选择必须在两个 tableviewCell 之间留下一个详细的子表。我能怎么做?你有什么建议吗?

4

1 回答 1

1

使用 insertRowsAtIndexPaths 在所选单元格的上方/下方插入新行,如下所示。

[tableView insertRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationBottom];

并根据您的要求自定义方法。

于 2013-03-29T10:00:49.917 回答