我有一个自定义 UITableView
展示一组自定义UITableViewCells
.这个tableView
将在几个不同的 UIViewControllers
中实例化.在某些用例中,不同的 viewControllers
将同时存在于 UINavigationController
,例如:UIViewController viewA;
推送到 UIViewController viewB;
两个 Controller 都有自己的UITableView
.两个tableViews
有自己的一套UITableViewCells
同reuseIdentifier
.
是否会发生 UITableViewCell
来自 viewA
正在 viewB
中重复使用?
最佳答案
根据the docs , 不。
A UITableView object maintains a queue (or list) of the currently reusable cells, each with its own reuse identifier, and makes them available to the delegate in the dequeueReusableCellWithIdentifier: method
实例将维护自己的重用队列。
关于ios - UITableViewCells 会在不同的 UITableViews 实例中重复使用吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30100208/