UITableView grouped section footer not updating after reload

前端 未结 2 1107
旧巷少年郎
旧巷少年郎 2021-01-28 06:33

I have 3 or 2 sections (depending on datasource), in my grouped UITableView. I am trying to reload the last section via:

dispatch_async(dispatch_get_main_queue()         


        
2条回答
  •  温柔的废话
    2021-01-28 07:07

    You should implement "isTheLastSection" according to your logic

    - (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section {
        if (isTheLastSection) {
             return 40;
        }
        return 0;
    }
    

提交回复
热议问题