1.图1中的scrollToRowAtIndexPath方法会使用estimatedRowHeight值,当 estimatedRowHeight=0时,用 scrollToRowAtIndexPath方法时会滚动到最底部,但是是有缺陷的,为什么呢?因为系统需要去精确计算很多个cell组合后的高度,当cell非常多时,就不好了。
图1
解决方案:翻转
1.图1中的scrollToRowAtIndexPath方法会使用estimatedRowHeight值,当 estimatedRowHeight=0时,用 scrollToRowAtIndexPath方法时会滚动到最底部,但是是有缺陷的,为什么呢?因为系统需要去精确计算很多个cell组合后的高度,当cell非常多时,就不好了。
图1
解决方案:翻转