1
我已經看到一些iPhone應用程序,它們顯示加載後的第一部分行其他部分的行將不可見,直到你點擊它們。如何使用動畫在uitableview中顯示/隱藏部分行?
如果你想看到更多的數據,你必須點擊那個特定的部分,這樣它會崩潰並顯示數據行。
一些不清楚的想法:
- (void)beginUpdates;
- (void)endUpdates;
- (void)insertSections:(NSIndexSet *)sections withRowAnimation: (UITableViewRowAnimation)animation;
- (void)deleteSections:(NSIndexSet *)sections withRowAnimation: (UITableViewRowAnimation)animation;
- (void)insertRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation: (UITableViewRowAnimation)animation;
- (void)deleteRowsAtIndexPaths:(NSArray *)indexPaths withRowAnimation: (UITableViewRowAnimation)animation;
但不知道如何檢測上節頭自來水?
任何人都知道我該怎麼做?
即如何在uitableview中實現可摺疊的部分?
謝謝。