据我了解,如果不期望该单元格被重用,则创建一个 reuseIdentifier 为 nil 的 UITableViewCell 是有效的,例如当该类型的单元格只有一两行时。
前几天有人提出这是不正确的。是吗?
最佳答案
不,根据 Apple 的官方文档,我认为这完全没问题:
reuseIdentifier
A string used to identify the cell object if it is to be reused for drawing multiple rows of a table view. Pass nil if the cell object is not to be reused. You should use the same reuse identifier for all cells of the same form.
关于ios - 没有 reuseIdentifier 的 UITableViewCell,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26758545/