在iOS13之前的系统但我们点击cell中的按钮或者刷新cell的时候会发生cell自动往上跳动的想象,y因为最近开发遇到iOS12.4系统,iPhone 8出现tableviewcell中的按钮点击出现抖动,经过多方研究,发现是iOS 13以前的系统会有这类问题。解决方法如下:
设置UITableView的下列属性即可解决这个问题
self.tableView.estimatedRowHeight = 0;
self.tableView.estimatedSectionHeaderHeight = 0 ;
self.tableView.estimatedSectionFooterHeight = 0;