Keep getting nil from dequeueReusableCellWithIdentifier?

后端 未结 5 1273
清酒与你
清酒与你 2020-12-11 05:20

I\'ve created a prototype cell with identifier \"mainViewTableCell\" in storyboard file and connected the main table view with a custom controller class named \"NTTableViewC

5条回答
  •  旧时难觅i
    2020-12-11 05:45

    Table cells only become reusable when they are hidden, so you should only have the number of cells you're currently displaying in memory. How many cells are you displaying, and how many are alloc'ed?

提交回复
热议问题