- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
{
//将要显示最后一个cell时候进行刷新
if (indexPath.row == [[_dataArray objectAtIndex:0] count] - 1)
{
UIView * footerView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 320, 40)];
[_tableView setTableFooterView:footerView];
_tableView.tableFooterView.frame = CGRectMake(_tableView.tableFooterView.frame.origin.x, _tableView.tableFooterView.frame.origin.y, 320, 44);
{
//将要显示最后一个cell时候进行刷新
if (indexPath.row == [[_dataArray objectAtIndex:0] count] - 1)
{
UIView * footerView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 320, 40)];
[_tableView setTableFooterView:footerView];
_tableView.tableFooterView.frame = CGRectMake(_tableView.tableFooterView.frame.origin.x, _tableView.tableFooterView.frame.origin.y, 320, 44);
NSLog(@"666");
}
}
使用 HVTableView 时候,成功解决tablefooterview 显示时候的,frame.origin.y 或者 size.hight 高度增大的问题