iOS 11 中uitablview Header 设置无效

来源:互联网 发布:淘宝举报假冒品牌 编辑:程序博客网 时间:2024/06/15 07:34



 升级iOS11 后uitablview header的高度设置失效,并且无缘无故的增高了很多像素,

  针对这个问题在网上找了下方法,只需要将header的高度设置为0.00001并且实现这两个

   代理方法即可:


-(UIView*)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section

{

    return nil;

}


-(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section

{

    return nil;

}





阅读全文
0 0