When does UITableView content size update with row insert/delete animation

前端 未结 3 1740
情书的邮戳
情书的邮戳 2021-01-12 02:08

I am curious when the UITableView\'s content size is updated after doing an insert/delete animation call. I figured it would be like most [UIView animation...] blocks in tha

3条回答
  •  旧巷少年郎
    2021-01-12 02:29

    The content size will changed after calling delegates about height:

    - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath;
    - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section;
    - (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section;
    

提交回复
热议问题