How to design a custom UITableView like Google Drive uses including animation while drilling down and up in the folder structure.

StackOverflow https://stackoverflow.com/questions/23534860

문제

I would like to display file folder structure exactly like in Google Drive and with the proper animation. When we are drilling down then the resulting view enters from the right and vise-versa.

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

enter image description here

thanks in advance!

도움이 되었습니까?

해결책

have you tried using the methods:

[tableView beginUpdates];
//perform changes to data
[self.tableView insertRowsAtIndexPaths:paths withRowAnimation:UITableViewRowAnimationRight];
[tableView endUpdates];

With each section being folders. So initially a bunch of sections with 0 cells, and the once you tap a section, you insert cells for that section, and reference that through the paths array.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top