로드 한 후 첫 번째 행 섹션을 표시하는 일부 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;
그러나 섹션 헤더 탭을 감지하는 방법을 몰라?
나는 어떻게 그렇게 할 수 있는지 알고있다.
ie uitableview에서 접을 수있는 섹션을 구현하는 방법은 무엇입니까?
감사합니다.