How can we hide the tableHeaderView and tableFooterView?

前端 未结 8 501
我在风中等你
我在风中等你 2020-12-08 10:32

I have two buttons which i add it in one in table-footer and other one in table-header,i know how to hide the headerview of the table using this codetable.tableHeader

8条回答
  •  囚心锁ツ
    2020-12-08 10:54

    //hidden sectionFooter
    
    - (nullable UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section {
        return nil;
    }
    - (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:    (NSInteger)section {
        return 0.0;
    }
    

提交回复
热议问题