Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我创建了一个标准的 UITableView,一个单元格的选择必须在两个 tableviewCell 之间留下一个详细的子表。我能怎么做?你有什么建议吗?
使用 insertRowsAtIndexPaths 在所选单元格的上方/下方插入新行,如下所示。
[tableView insertRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationBottom];
并根据您的要求自定义方法。