The default height of the end of the grouped tableview area

Need to use grouped style tableview

1 First, set the estimated height

        _tableView.estimatedSectionFooterHeight = 0.01;

2 Second, set the height in the proxy method

- (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section
{
    return 5;
}

Note that you cannot only return the height in the proxy method, the estimated height must be set, otherwise it will cause a

The height of 17.5, as shown in the figure

It can be seen from the layer structure information that the default area tail height is 17.5,

Therefore, if we want to set the end height of the grouped style tableview area, we must set the preset height

Guess you like

Origin blog.csdn.net/LIUXIAOXIAOBO/article/details/114028769