ios11不走区头区尾告诉设置方法

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u013127850/article/details/79538815

//iOS11下必须加下面两个方法,否则不走区头区尾高度设置方法的,

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

    UIView *footView = [[UIView alloc]init];

    return footView;

}

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

{

    UIView *headerView = [[UIView alloc]init];

    return headerView;

}

猜你喜欢

转载自blog.csdn.net/u013127850/article/details/79538815