reloadData仅在tableView可见单元格上 [英] reloadData only on tableView visible cells
本文介绍了reloadData仅在tableView可见单元格上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这可能吗?仅重新加载可见的单元格以便更有效。
Is that possible? To reload only the cells that are visible in order to do it more efficient.
推荐答案
这是默认情况下表视图的工作方式。 UITableView
类永远不会加载单元格,直到它们即将出现在屏幕上,即使你调用 reloadData
。
That's how table views work by default. The UITableView
class never loads cells until they're about to appear onscreen, even when you call reloadData
.
这篇关于reloadData仅在tableView可见单元格上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文