No index path for table cell being reused

前端 未结 13 1507
执念已碎
执念已碎 2021-02-04 05:18

This started to happen out of the blue. Any ideas: Code:

CUSTOMCLASSNAME (I have replaced the actual class name as it contains the name of the client.)

Initialis

13条回答
  •  逝去的感伤
    2021-02-04 06:15

    Return [cell contentView] instead of cell from tableView:viewForHeaderInSection:

    EDIT: This somehow led to crashes on long-press gestures on UI Buttons. To fix that, I gave up and used another section with a single item as a fake section header.

提交回复
热议问题