简体   繁体   English

我的 tableView 无法平滑滚动

[英]My tableView can't scroll smoothly

I have a tableView A above a tableView B, A and B have the same hierarchy, A's height is half of B's height.我在 tableView B 上方有一个 tableView A,A 和 B 具有相同的层次结构,A 的高度是 B 高度的一半。 Now the problem is that A can't scroll smoothly, can someone tell me why.现在的问题是A不能顺利滚动,谁能告诉我为什么。

Check your cellForRowAtIndexPath: method.检查您的cellForRowAtIndexPath:方法。 Keep it as light as possible.保持它尽可能轻。 Ensure you are re-using cells in it and that no calculations are done in cellForRowAtIndexPath: method.确保您在其中重复使用单元格,并且没有在cellForRowAtIndexPath:方法中进行计算。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM