在實(shí)踐中遇到更新指定cell的大小抄课,通過reloadData來刷新UITableView,但遇到了跳到頂部的問題挺峡,此時(shí)發(fā)現(xiàn)是影響這個(gè)得因素是下面三個(gè)屬性的設(shè)置左胞,我們必須要設(shè)置合理正確的值。
? ? ? ? _tableView.estimatedRowHeight = 0;
? ? ? ? _tableView.estimatedSectionHeaderHeight = 147;
? ? ? ? _tableView.estimatedSectionFooterHeight = 0;