我想显示与 Google 云端硬盘中完全一样的文件夹结构,并使用适当的动画。当我们向下钻取时,结果 View 从右侧进入,反之亦然。
NB: Showing the structure is not the question rather the proper animation.
提前致谢!
最佳答案
您是否尝试过使用以下方法:
[tableView beginUpdates];
//perform changes to data
[self.tableView insertRowsAtIndexPaths:paths withRowAnimation:UITableViewRowAnimationRight];
[tableView endUpdates];
每个部分都是文件夹。因此,最初是一堆包含 0 个单元格的部分,一旦你点击一个部分,你就会为该部分插入单元格,并通过路径数组引用它。
关于ios - 如何设计自定义 UITableView,如 Google Drive 使用的动画,同时在文件夹结构中向下钻取和向上钻取。,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23534860/