iOS 加载完成之后,重新计算table的高度

Posted 木头Ge

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了iOS 加载完成之后,重新计算table的高度相关的知识,希望对你有一定的参考价值。

/**

 * 加载完成之后,重新计算table的高度

 */

-(void) tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath{

 

    if([indexPath row] == ((NSIndexPath*)[[tableView indexPathsForVisibleRows] lastObject]).row){

        if (tableView.tag == MINE_TABLE_TYPE_HEAD) {

 

            [self func_updateConstraints];

        }

    }

}

以上是关于iOS 加载完成之后,重新计算table的高度的主要内容,如果未能解决你的问题,请参考以下文章