Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以重用单元格(dequeueReusableCellWithIdentifier在UITableView类中使用)的确切情况是什么?
dequeueReusableCellWithIdentifier
一个单元格可以通过您传入的标识符重复使用。您唯一的要求是为您想要的相同类型的单元格使用相同的标识符。
请记住,如果一个不可重复使用,您需要创建一个。