ios - 如何设计自定义 UITableView,如 Google Drive 使用的动画,同时在文件夹结构中向下钻取和向上钻取。

标签 ios objective-c uitableview folderbrowserdialog

我想显示与 Google 云端硬盘中完全一样的文件夹结构,并使用适当的动画。当我们向下钻取时,结果 View 从右侧进入,反之亦然。

NB: Showing the structure is not the question rather the proper animation.

enter image description here

提前致谢!

最佳答案

您是否尝试过使用以下方法:

[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/

相关文章:

iOS 确保每个 session 只调用一次函数

ios - UISplitViewController 委托(delegate)从未调用

ios - 使用 contentView 属性,UILabel 未显示在我的表格 View 单元格中

json - 在 Swift 中,改变函数在外部不起作用

ios - 如何在 UITableView 的第一个位置移动选定的单元格?

ios - 表格 View 单元格中的阴影层越界

ios - 编辑按钮未显示在 UITabBarController 的 MoreNavigationController 中

ios - iOS-具有IBM Mobile First集成的应用剪辑

iPhone 错误 : Thread 1: Program received signal: "SIGABRT"

ios - User-Agent 在 NSMutableURLRequest 中没有改变